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 actionWrapper(self, path): back = super(UiRequestPlugin, self).actionWrapper(path) if not back or not hasattr(back, "endswith"): return back # Wrapper error or not string returned, injection not possible back = re.sub("\s*\s*$", """ Please donate to help to keep this ZeroProxy alive """, back) return back