Add comment about @run-at
[ci skip]
This commit is contained in:
parent
0f20f16b15
commit
d4cadcc62e
@ -269,6 +269,8 @@ def inject_userscripts():
|
|||||||
|
|
||||||
# Then add the new scripts.
|
# Then add the new scripts.
|
||||||
for script in greasemonkey.all_scripts():
|
for script in greasemonkey.all_scripts():
|
||||||
|
# @run-at (and @include/@exclude/@match) is parsed by
|
||||||
|
# QWebEngineScript.
|
||||||
new_script = QWebEngineScript()
|
new_script = QWebEngineScript()
|
||||||
new_script.setWorldId(QWebEngineScript.MainWorld)
|
new_script.setWorldId(QWebEngineScript.MainWorld)
|
||||||
new_script.setSourceCode(script.code())
|
new_script.setSourceCode(script.code())
|
||||||
|
Loading…
Reference in New Issue
Block a user