News for hackers. Stuff that matters.
Re:500 page: distract users with cat puzzle by jonchang on Friday June 28, 2013 @03:48PM (#5959988)
Doesn't work in Firefox thanks to this amazing browser detection:

    Utils.prototype.setPlatform = function() {        
        ["Safari", "Chrome", "Android", "iPhone", "Blackberry"].forEach(function(browser) {
            if (navigator.userAgent.indexOf(browser) > -1) {
                browser = browser.toLowerCase();
                if (browser === "safari" || browser === "chrome") {
                    platform = "desktop";
                } else {
                    platform = browser.toLowerCase();
                }   
            }
        });

        document.body.setAttribute("data-platform", platform);
        
        return platform;
    };

There are no comments on this comment yet.