I'm using Chromium (Version 30.0.1599.114 Ubuntu 12.10) under Linux. I'm trying to access a website that claims that it doesn't work under Linux. Of course, this is most likely crazy since the web is platform-independent (unless they're using some kind of evil plug-in).
I've used a user agent switcher to supply a Windows user agent, but to no avail. Upon viewing the source, it appears that the site is using Javascript to determine the operating system. I'm looking for a way to get my browser to report in Javascript that it is Windows or MacOS.
Do you know how to do it?
navigator.userAgent
and grepping forlinux
. However, since I'm spoofing the user agent string, mynavigator.userAgent
is nowMozilla/5.0 (Windows NT 6.2; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
yet the site still knows somehow that I'm on Linux.