How to create a new useragent override string in Pale Moon

Post your tutorials for using Pale Moon or performing related tasks here.
Note: Not for "how do I...?" Questions!

Moderator: satrow

Forum rules
Tutorials and Howtos should only relate to Pale Moon, and not to third party applications. e.g.: Don't post a Howto for configuring your firewall.
If you have a question how to do something, you should use one of the support boards, not this board. It is meant for people to document and post instructions.
User avatar
gracious1
Keeps coming back
Keeps coming back
Posts: 812
Joined: Sun, 15 May 2016, 05:00
Location: unseasonably HOT upstate NY
Contact:

How to create a new useragent override string in Pale Moon

Postby gracious1 » Sat, 30 Dec 2017, 19:59

Some websites engage in useragent sniffing rather than using other methods to determine if your browser has the proper technology. This can subject Pale Moon users to browser discrimination, but there is a workaround. For these websites, you can create a useragent override. In this tutorial, we will use the randomly chosen site Kroger.com as an example. (Note: You may not need to create a useragent override to access this site on your particular system; this is just to illustrate how one might do it.) Let's go!

  1. Open about:config (Click "I promise to be careful!")
  2. Anywhere in the content are, right-click and select New -> String
  3. In the dialog box, add this as the preference name:

    Code: Select all

    general.useragent.override.kroger.com
  4. For the string value, enter one of these choices:
    1. For GNU/Linux, enter

      Code: Select all

      Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0
    2. For Windows 7, enter

      Code: Select all

      Mozilla 5.0 (Windows NT 6.2; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
    3. For Windows 10, enter

      Code: Select all

      Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
    4. For Mac OS X High Sierra, enter

      Code: Select all

      Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:56.0) Gecko/20100101 Firefox/56.0 (Pale Moon)
  5. Click "OK", then return to kroger.com and see whether you can now access it.
For other websites, substitute the appropriate domain name.
You may also have to tweak other pieces of the useragent string to make it work for other sites (e.g., change version from "56" to "57"). This has been just one example to get you started.
HTH Image
Last edited by gracious1 on Sat, 30 Dec 2017, 20:48, edited 17 times in total.
Image“Life is what happens to us while we are making other plans.” ― Allen Saunders

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 21199
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: How to create a new useragent override string in Pale Moon

Postby Moonchild » Mon, 01 Jan 2018, 14:41

Windows 7 is NT 6.1
Also, what string needs to be entered depends highly on why one needs an override to begin with -- you may want to be less specific.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"The wisest men follow their own direction." - Euripedes

kbhasi
Hobby Astronomer
Hobby Astronomer
Posts: 19
Joined: Wed, 25 Jan 2017, 10:40

Re: How to create a new useragent override string in Pale Moon

Postby kbhasi » Fri, 26 Jan 2018, 15:38

Moonchild wrote:...you may want to be less specific.


Yep, I was right, I just had to take the preloaded override for WhatsApp Web, and change the OS portion of the user agent to "Linux x86_64" so that they wouldn't ask me to download the client for Windows when I'm on a Linux-based OS.


Return to “Tutorials/Howtos”

Who is online

Users browsing this forum: No registered users and 2 guests