Remove GM_ and userscript variables from global scope.
This commit is contained in:
parent
325c595b89
commit
799730f686
@ -201,7 +201,8 @@ unsafeWindow = window;
|
||||
scriptName=self.name,
|
||||
scriptInfo=self._meta_json(),
|
||||
scriptMeta=self.script_meta)
|
||||
return '\n'.join([gm_bootstrap, self._code])
|
||||
return '\n'.join(
|
||||
["(function(){", gm_bootstrap, self._code, "})();"])
|
||||
|
||||
def _meta_json(self):
|
||||
return json.dumps({
|
||||
|
Loading…
Reference in New Issue
Block a user