Remove GM_ and userscript variables from global scope.

This commit is contained in:
Jimmy 2017-07-27 21:21:21 +12:00
parent 325c595b89
commit 799730f686

View File

@ -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({