My favorite streaming site says I'm using a wrong operating system / how to set the user agent

Created by Michael Müller on on 2013-08-14
Keywords:
Last updated by:
Sebastian Lackner on on 2014-02-22

*******************************************************
* DO _NOT_ USE INTERNET EXPLORER AS USER AGENT! *
*******************************************************

Some websites check your operating system before they test if Silverlight is available. If they determine that you are using Linux they will show you some error message as Silverlight is not available for Linux. As most of these checks are done using the user agent of your browser you can circumvent this error by installing a user agent switcher.

IMPORTANT: Do NOT use the "Internet Explorer" option, this will most likely not work, as the pages will try to use ActiveX which is not supported by Linux browsers.

You can for example use the following ones (watch out, there are also some which don't work properly, see the list at the end!):

.

GOOGLE CHROME / CHROMIUM
===========================
o https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg
   This plugin already includes a working user agent, select Firefox -> Windows Firefox 15
   For Unity3D the predefined option Safari / Mac OS X seems to work well.

o Alternatively its also possible to specify the user agent on the command line, for example like:
   chromium-browser --user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1"
   chromium-browser --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10"

.

FIREFOX
=======
o https://addons.mozilla.org/en-US/firefox/addon/user-agent-overrider
   Open the Preferences, then add the following two lines at the end of the input textbox:

Firefox 15/Windows: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1
Safari/OSX: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10

   Afterwards select the option "Firefox 15/Windows" if you want to use Silverlight and "Safari/OSX" if you want to use Unity3D.

.

UZBL
=====
o Use the following configuration in ~/.config/uzbl/config:
set useragent = Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1
@on_event LOAD_COMMIT js var __originalNavigator = navigator; navigator = new Object(); navigator.__proto__ = __originalNavigator; navigator.__defineGetter__('userAgent', function () { return 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1'; });

.

---------------
List of useful user agent strings:

Silverlight:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0
Mozilla/5.0 (Windows NT 6.1; rv:23.0) Gecko/20131011 Firefox/23.0

Unity3D:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10

---------------
User agent switchers known NOT TO WORK:

Firefox:
  - https://addons.mozilla.org/en-us/firefox/addon/uacontrol/ (works for some pages, but not for all! use it at your own risk!)
  - https://addons.mozilla.org/de/firefox/addon/user-agent-switcher/ (see: https://bugs.launchpad.net/pipelight/+bug/1213584)
Chrome:
 - https://chrome.google.com/webstore/detail/user-agent-switcher/ffhkkpnppgnfaobgihpdblnhmmbodake