Jump to content

(Guide/Review) Custom UserAgent String is a Firefox extension that lets you set a user-agent on a per-site basis


Karlston

Recommended Posts

Custom UserAgent String is a Firefox extension that lets you set a user-agent on a per-site basis

So, Mozilla removed the site specific user-agent override setting from Firefox 71. There is a workaround for this, which as mentioned in the previous article is to use a global user-agent. The main issue with the workaround is that the set user-agent is then used on every site that you visit in the Firefox web browser.

 

And while I did warn you there maybe some side effects, initially I didn't notice many except for YouTube reverting to an older design.  A few days later, when I visited a banking website, I found that it displayed a message which read something like "Upgrade your browser to access the website". Occasionally, one or two websites simply didn't load at all. I ignored those because I thought it was a server issue, but my friends told me they could access the sites from their browser (also Firefox).

 

Custom UserAgent String is a Firefox extension that lets you set a user-agent on a per-site basis

 

That's when it hit me, of course the user-agent setting is what's messing with other websites. Sure enough, disabling the setting ensured that these websites worked as they normally do. Ironic, isn't it? You set the option to access some websites, but it ends up breaking others.  I was looking for a fix and there is literally only one option, to use a user-agent switcher extension.

 

After some research and testing (and looking for alternatives to existing add-ons), I came across one which let me use user-agents on a per-site basis. The extension is called Custom UserAgent String.  It is written by the author of the User-Agent Switcher revived add-on (not to be confused with the one made by Alexander Schlarb). It's amazing how many add-ons have the same name.

 

Functionally, both add-ons from Liner are quite similar, but the User-Agent Switcher extension only allows you to set a global user agent, which is what we wanted to fix here. Custom UserAgent String however lets you set a user-agent on a per-site basis. Perfect and it's quite simple to use too.

How to use Custom UserAgent String

Install the extension, click on its icon and then on the Options button. This should take you to a settings screen.

 

Ignore section I and skip to section II, which is captioned "Predefined UserAgent Strings". It has two drop-down menus, one for selecting the browser and Operating system, and the other for selecting the browser's user-agent.

Step 1

custom user agent string - section ii

 

Click on the box listed under "Enter a desired URL". You will see that it has an asterisk symbol * in it. Delete it and type the address of the website that you want to set the user-agent for in the box.  Here's the weird part: Typing a partial address in the URL box like ghacks.net or www.ghacks.net doesn't add the site correctly, i.e., it reverts to the asterisk (which makes it use the user-agent globally).

 

To avoid this, you must use the full address. For e.g https://www.ghacks.net/ will work.

 

custom user agent string - section ii how to use

Step 2

Use the box below the setting that reads "Enter a custom UserAgent string or select one from the above list". This is where you can enter the custom user agents for specific websites. You can get the user agent from the drop-down menu mentioned above. Or, you can use your custom one (for older browser versions that maybe missing). Click on the + button on the right side to finish adding the site-specific user-agent; it should appear in the table at the end of the page.

 

Note: The custom string option is good for long term use, since even if the add-on hasn't been updated, you can still get the latest user agent from elsewhere and use it.

 

Let's look at another example:

 

Say you want to access Skype on the Web. The URL should be written like this https://web.skype.com/

 

The user-agent should be Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

 

There are 2 other things that the Custom UserAgent String table is useful for. The checkbox next to each site listed, toggles the user-agent to be used for the entire website (top-level domain) or only for the given address. Clicking the blank gray button at the right end of the table acts as a switch for enabling/disabling the user-agent.

 

You can disable the Custom UserAgent String add-on completely by clicking on the icon and hitting the power button.

 

This method works perfectly fine in Firefox 71. Which extension are you using for setting site-specific user-agents?

 

 

Source: Custom UserAgent String is a Firefox extension that lets you set a user-agent on a per-site basis (gHacks)

Link to comment
Share on other sites


  • Replies 1
  • Views 1k
  • Created
  • Last Reply

YouTube never works right  if your switch your UA  to Google Chrome . Firefox , Safari  if using   waterfox   ether you have use your default UA   ot switch to IE 11 and this gives you classic YouTube  interface . But  nsanefourms   wont work right  with IE  11 user strings  in waterfox  but work fine  with Google chorme   .:P

Here you can always  find the  latest   UA  strings for browsers.

https://www.whatismybrowser.com/guides/the-latest-user-agent/

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...