Helpviewer/GreaseMonkey/GreaseMonkeyManager.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3057
10516539f238
parent 3035
36e9f388958b
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
250 250
251 for script in self.__endScripts: 251 for script in self.__endScripts:
252 if script.match(urlString): 252 if script.match(urlString):
253 javascript = 'window.addEventListener("DOMContentLoaded",' \ 253 javascript = 'window.addEventListener("DOMContentLoaded",' \
254 'function(e) {{ {0} }}, false);'.format( 254 'function(e) {{ {0} }}, false);'.format(
255 bootstrap_js + script.script()) 255 bootstrap_js + script.script())
256 frame.evaluateJavaScript(javascript) 256 frame.evaluateJavaScript(javascript)
257 257
258 def __load(self): 258 def __load(self):
259 """ 259 """
260 Private slot to load the available scripts into the manager. 260 Private slot to load the available scripts into the manager.

eric ide

mercurial