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,
|
scriptName=self.name,
|
||||||
scriptInfo=self._meta_json(),
|
scriptInfo=self._meta_json(),
|
||||||
scriptMeta=self.script_meta)
|
scriptMeta=self.script_meta)
|
||||||
return '\n'.join([gm_bootstrap, self._code])
|
return '\n'.join(
|
||||||
|
["(function(){", gm_bootstrap, self._code, "})();"])
|
||||||
|
|
||||||
def _meta_json(self):
|
def _meta_json(self):
|
||||||
return json.dumps({
|
return json.dumps({
|
||||||
|
Loading…
Reference in New Issue
Block a user