User Tools

Site Tools


docs:tips_n_tricks:browsing_the_internet.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
docs:tips_n_tricks:browsing_the_internet.html [15.04.2010 22:43 CEST] peterdocs:tips_n_tricks:browsing_the_internet.html [15.04.2010 23:22 CEST] peter
Line 6: Line 6:
 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.  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:+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   - Install the NoScript Plugin
Line 14: Line 14:
  
   noscript.surrogate.nce.sources = @*.hertz.de   noscript.surrogate.nce.sources = @*.hertz.de
-  noscript.surrogate.nce.replacement = navigator.__defineGetter__("cookieEnabled",ok);+  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. 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.+where *.hertz.de is the site I had trouble with.
  
docs/tips_n_tricks/browsing_the_internet.html.txt · Last modified: 15.04.2010 23:24 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki