nice-alert.js icon indicating copy to clipboard operation
nice-alert.js copied to clipboard

Doesn't work with YesScript and NoScript

Open NV opened this issue 15 years ago • 4 comments

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

NV avatar Oct 31 '09 13:10 NV

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?

NV avatar Oct 31 '09 22:10 NV

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)

Martii avatar Oct 31 '09 22:10 Martii

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

NV avatar Oct 31 '09 22:10 NV

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.

Martii avatar Nov 01 '09 00:11 Martii