You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing a script which doesn't use the GM_* API (or explicitly contains @grant none) and contains an early return, the script is never run. An example script can be found here, with GM 0.9, this script would show an alert, with GM HEAD it doesn't.
The reason is that since the script has an implicit (or explicit) @grant none, it isn't initially wrapped inside an anonymous function in service#injectScripts. But since it also doesn't specify an @unwrap metadata key, it's not run again (wrapped in an anonymous function) after throwing a "return not in function" error.
For backwards compatibility, one of the two checks should be removed.
The text was updated successfully, but these errors were encountered:
When installing a script which doesn't use the GM_* API (or explicitly contains
@grant none
) and contains an early return, the script is never run. An example script can be found here, with GM 0.9, this script would show an alert, with GM HEAD it doesn't.The reason is that since the script has an implicit (or explicit)
@grant none
, it isn't initially wrapped inside an anonymous function inservice#injectScripts
. But since it also doesn't specify an@unwrap
metadata key, it's not run again (wrapped in an anonymous function) after throwing a "return not in function" error.For backwards compatibility, one of the two checks should be removed.
The text was updated successfully, but these errors were encountered: