I'm playing with a very small script surrogate that solves a problem that's been driving me up the wall since forever: sites that believe testing navigator.cookieEnabled is still a valid way to find whether a browser accepts cookies. An example of two (not a typo) large-ish sites that do this:
Code: Select all
noscript.surrogate.cookie.replacement="navigator.__defineGetter__("cookieEnabled", function() { return true })"
noscript.surrogate.cookie.sources="@*.monster.com @*.newjobs.com @*.nintendo.com"
Sites coded up by dunces, as in the two examples, simply test the twelve-year-old flag and refuse logins, draw in-browser "pop-ups" to let you know you've got cookies disabled (even if you're logged in and navigating just fine!) and otherwise break. With the above surrogate, these two sites (at least) work the way you would expect them to.
If the example code is sub-optimal for some reason, it's because I know nearly nothing about JavaScript.

Giorgio: If you happen across my old post requesting help with this problem, throwing a JS exception is equally as bad as Fox' broken cookieEnabled behavior, at least insofar as sites testing this value continue to be broken.