nice-alert.js
nice-alert.js copied to clipboard
Doesn't work with YesScript and NoScript
If we have YesScript and NoScript installed in Firefox, nice-alert.user.js doesn't work at all.
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:
- Install http://userscripts.ru/js/nice-alert/alert-to-console-log.user.js into Firefox
- 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.
- Reload page. Holy shit! Now all alerts in the Firebug console. WTF?
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)
Well, now I have no idea how to fix it.
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.