We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We are using the variable _window instead of window to reference the global object.
_window
window
Using this one liner, we make sure that _window is referencing the real global object.
const _window = 'undefined' == typeof unsafeWindow ? window : unsafeWindow;
Problem is that this one liner is not included in the library and have to be placed manually.
Is it possible to include that one liner in the src folder so that it is included in the built library?
The text was updated successfully, but these errors were encountered:
we could also overwrite window to unsafeWindow at the start of the userscript.
if("undefined" != typeof unsafeWindow) { //trust me bro window = unsafeWindow; }
this actually works
Sorry, something went wrong.
we could also overwrite window to unsafeWindow at the start of the userscript. if("undefined" != typeof unsafeWindow) { //trust me bro window = unsafeWindow; } this actually works
seems to be fixed in a new tampermonkey version
No branches or pull requests
We are using the variable
_window
instead ofwindow
to reference the global object.Using this one liner, we make sure that
_window
is referencing the real global object.const _window = 'undefined' == typeof unsafeWindow ? window : unsafeWindow;
Problem is that this one liner is not included in the library and have to be placed manually.
Is it possible to include that one liner in the src folder so that it is included in the built library?
The text was updated successfully, but these errors were encountered: