Skip to content
New issue

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

Doesn't work with YesScript and NoScript #6

Open
NV opened this issue Oct 31, 2009 · 4 comments
Open

Doesn't work with YesScript and NoScript #6

NV opened this issue Oct 31, 2009 · 4 comments

Comments

@NV
Copy link
Owner

NV commented Oct 31, 2009

If we have YesScript and NoScript installed in Firefox, nice-alert.user.js doesn't work at all.

@NV
Copy link
Owner Author

NV commented Oct 31, 2009

I've played with location hack a little. It's should help, but in fact it's just getting worse.

I've remove all unnecessary code to show the problem. How to reproduce it:

  1. Install http://userscripts.ru/js/nice-alert/alert-to-console-log.user.js into Firefox
  2. Open http://userscripts.ru/js/nice-alert/tests/basic.html. All alerts should be in the Firebug console, but for some unknown reason first alert still native.
  3. Reload page. Holy shit! Now all alerts in the Firebug console. WTF?

@Martii
Copy link

Martii commented Oct 31, 2009

Please note that the location hack only works under certain platforms. Nix for example won't support this fully in the Firefox distro.

Also if JavaScript is disabled even without an add-on installed produces the same effect. (see Firefox Preferences → Content → Enable JavaScript checkbox)

@NV
Copy link
Owner Author

NV commented Oct 31, 2009

Well, now I have no idea how to fix it.

@Martii
Copy link

Martii commented Nov 1, 2009

GM sandboxed scripts always have JavaScript access... I'm guessing that your var w is the one that is pushing it into the restricted zone (e.g. the web page itself instead of the XPCNativeWrapper/Sandboxed window). If you can keep this from happening on GM/WM enabled systems you might have better luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants