import re from Plugin import PluginManager # Warning: If you modify the donation address then renmae the plugin's directory to "MyDonationMessage" to prevent the update script overwrite @PluginManager.registerTo("UiRequest") class UiRequestPlugin(object): # Inject a donation message to every page top right corner def renderWrapper(self, *args, **kwargs): body = super(UiRequestPlugin, self).renderWrapper(*args, **kwargs) # Get the wrapper frame output inject_html = """ Please donate to help to keep this ZeroProxy alive """ return re.sub(r"\s*\s*$", inject_html, body)