docs:tips_n_tricks:browsing_the_internet.html
This is an old revision of the document!
Internet Annoyances
How to cope with 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.
Found at http://forums.mozillazine.org/viewtopic.php?f=38&t=547857 (found with google), I tried the following solution for firefox which worked for me:
- Install the NoScript Plugin
- Enter the “about:config” Page
- Add the following two properties:
noscript.surrogate.nce.sources = @*.hertz.de noscript.surrogate.nce.replacement = navigator.__defineGetter__("cookieEnabled",function(){var ed=new Date; ed.setTime(0); var tc="__noscriptTestCookie_"+Math.round((Math.random()*99999)).toString(16)+"=1";document.cookie=tc;var ok=document.cookie.indexOf(tc)>-1;document.cookie=tc+";expires="+ed.toGMTString();return ok});
where *.hertz.de is the site I had trouble with.
docs/tips_n_tricks/browsing_the_internet.html.1271366537.txt.gz · Last modified: 15.04.2010 23:22 CEST by peter