Advertisement
Guest User

Untitled

a guest
Apr 9th, 2013
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.54 KB | None | 0 0
  1. diff --git UserScriptLoader/UserScriptLoader.uc.js UserScriptLoader/UserScriptLoader.uc.js
  2. index 16a23a6..c070e2c 100644
  3. --- UserScriptLoader/UserScriptLoader.uc.js
  4. +++ UserScriptLoader/UserScriptLoader.uc.js
  5. @@ -973,7 +973,7 @@ USL.injectScripts = function(safeWindow, rsflag) {
  6.             return;
  7.         }
  8.  
  9. -       let sandbox = new Cu.Sandbox(safeWindow);
  10. +       let sandbox = new Cu.Sandbox(safeWindow, {sandboxPrototype: safeWindow});
  11.         let GM_API = new USL.API(script, sandbox, safeWindow, aDocument);
  12.         for (let n in GM_API)
  13.             sandbox[n] = GM_API[n];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement