User Tools

Site Tools


docs:tips_n_tricks:browsing_the_internet.html

This is an old revision of the document!


Internet Annoyances

Annoyances while browsing the Web …

Recover from navigator.cookieEnabled giving senseless value

If you enable cookies to specific sites only, the javascript method navigator.cookieEnabled will most properly return false, erroneously telling the script cookies won't work.

Inspired by http://forums.mozillazine.org/viewtopic.php?f=38&t=547857 (found with google), I tried the following solution for firefox which worked for me:

  1. Install the NoScript Plugin
  2. Enter the “about:config” Page
  3. Add the following two properties:
noscript.surrogate.nce.sources = @*.hertz.de
noscript.surrogate.nce.replacement = navigator.__defineGetter__("cookieEnabled",ok);

where *.hertz.de is the site I had trouble with. The second one is much more complicated in the article cited above, but I don't understand what he want's to achieve with that.

docs/tips_n_tricks/browsing_the_internet.html.1271364174.txt.gz · Last modified: 15.04.2010 22:42 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki