-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Hi, @warren-bank
I installed userscript (https://greasyfork.org/en/scripts/457196-immersive-translate/code), and trying to make it work.
In the Chrome debug console, it will complain:
Uncaught ReferenceError: unsafeWindow is not defined
at <anonymous>:1:16
at <anonymous>:1:405
I did see it's declared in
Line 42 in 76a7901
| private static final String JSUNSAFEWINDOW = "var unsafeWindow = (function() { var el = document.createElement('p'); el.setAttribute('onclick', 'return window;'); return el.onclick(); }()); window.wrappedJSObject = unsafeWindow;\n"; |
Due to my lack knowledge of javascript, I am not sure whether it's because some GM APIs are missing, so it can't work properly. Could you help to look at the script, and give me some hint where this might go wrong?
Thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels