Giter Club home page Giter Club logo

useragent-switcher's Introduction

UserAgent-Switcher

A User-Agent spoofer browser extension that is highly configurable!


This extension spoofs both the user-agent's request header and the navigator related properties (e.g.: navigator.userAgent, and navigator.appVersion). You can spoof per hostname, per window, per container (Firefox only), or randomly from an array.

YouTube Review:

Preview

Download Links:

Usage Instruction:

useragent-switcher's People

Contributors

commanderroot avatar gitoffthelawn avatar ray-lothian avatar totalcaesar659 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

useragent-switcher's Issues

Random user-agent string per hostname

I'd like to request support for a random user-agent string per hostname, not per page.

As far as I've experienced, if I set a group of random user-agent strings for a hostname, it will change randomly to a different one for every single page I open on that same website.

It's not very practical in terms of usability, actually browsing the website. So I'd like to have it set a random user-agent, which would stay for as long as I browse that website.

Great add-on btw. best user agent switcher there is for Mozilla.
Huge thanks for your consideration,
Chiappa

testing shows UA not being applied

Im in black-list mode and selected different types of UA but when I click on the test button the base UA is picked up

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0

and not, for example

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.36 Safari/537.36

Below are my FF's configuration settings for its UA:
devtools.inspector.showUserAgentShadowRoots;false
devtools.inspector.showUserAgentStyles;false
devtools.responsive.reloadConditions.userAgent;false
devtools.responsive.showUserAgentInput;false
devtools.responsive.userAgent;
dom.push.userAgentID;9424c4b8bf494a78bf62bdcbc4406743
general.useragent.compatMode.firefox;false
general.useragent.site_specific_overrides;true

Inconsistent "Apply" logic

Small observation:
When choosing an user agent, it requires selecting the user agent, followed by clicking "Apply".
When resetting the user agent (using the system's user agent), pushing "Reset" will apply it automatically.

It would be more consistent to always require "Apply" in order to apply any user agent changes.

Persistent UA on Relaunch

Thanks for an awesome Addon!
I have a url listed in white-list mode. I use the Window option to set its UA. All good (web.skype.com on Mac/Firefox 68.0.1)! It's not that big a deal, but when I relaunch Firefox, while the tab/URL is persistent, the UA is not and has to be reset. Is that expected behavior, or is there a simple workaround to ensure the tab loads with the custom UA when relaunching FF?

Window based useragent

I am having an issue where I have multible windows open and the userAgent switcher is keeping all new tabs opened in the window with the same useragent, would it be possible to make it so that all windows can be configured differently?

Black List mode option does not work on Android

  • Android 6.0.1, 7.1.1, 7.1.2. Samsung SM-A300FU, Samsung SM-T555, Xiaomi Redmi 4A respectively.
  • Android Firefox 64.0
  • Android Yandex Browser with Protect 18.11.979 (the only Chromium based that support Chrome extensions).
  • User-Agent Switcher and Manager 0.2.6.

The Black-list mode option simply does not work as intended. White-list mode and Custom mode do work as intended.

Thank you.

UA not being applied to ua-parser.js

As of 11/01/19 the test shows that the selected user agent is not being applied to ua-parser.js

whoer.net also lists the javascript detected useragent as different from the selected option in the extension.

Container support

Hi there, I was just wondering if you had considered making this extension compatible with Firefox's multi-account containers? E.g., spoofing the user agent on all sites visited while browsing in a particular container? I don't actually know if this is possible, but could be useful.

Thanks for maintaining a great extension, and sorry for cross-posting on add0n.com

user agent

Hi there would like support for this user agent

Add LICENSE or COPYING file

Hi, @ray-lothian, great extension, thanks!

It's a little bit unclear what license this software goes under, though; projects on GitHub are not automatically "open source", in fact, any code or software without a license are copyrighted by its author by default.

I highly recommend choosing a license for this extension, or at least adding a copyright notice if you do not wish to make it FLOSS (free/libre, or open source - software).

Here's a nice website for choosing a license: https://choosealicense.com/

Always show "Mozilla 5.0/" at begining of string ! Is this correct or it is shortage in add-on ?

Hi. I noticed that your applet always show "Mozilla" at start of any string I select EVEN IF IT IS NOT FIREFOX !!
Is this normal or it is a bug & shortage in add-on ?

For example: if I select "Chrome+Windows 10 OS .....", then it will show:

"Mozilla 5.0/.................................."

It seem to me that "Mozilla 5.0" should not appear & never detected by visited sites as currently the case, because this make visited site know that "Chrome+Windows" is a fake & it in fact is Firefox (being Mozilla) ..............

I'm on Fedora 28 X64 bit Cinnamon edition with Firefox 65.0 X64 bit.

Best.

Swap Whitelist <--> Blacklist?

Rather small, and it might come down to taste or I'm just reading it wrong, but shouldn't Whitelist and Blacklist be swapped? So Blacklist would be specifying domains that you want to spoof, and Whitelist would specify domains that you want to exclude from spoofing. I figure its a pretty minor thing, but I thought it might be helpful for new users who don't read descriptions.

Movies in high definition

I'm not able to see movies in High Definition (only in SD) on primevideo.com. I use Linux Mint, I set Firefox on Windows 7, white-list mode.

One click or auto- update UA definition strings

This helps to keep up with continuous updates of browsers, and saves much time. Top 5 most popular browsers is enough. Modern popular browsers all update automatically. Deprecate browser versions older than 5 years or hide them with an easy button/check to keep UA list clean..

It would be great also to show how popular the browsers (UA) are on the Internet and how popular they are amongst UserAgent-Switcher users.

Doesn't spoof the value of navigator.userAgent

Without also ensuring that the value of navigator.userAgent is set to the spoofed string, it will be trivial for any site capable of serving JavaScript (and having it executed) to infer and ignore the spoofed request header.

With the WWW becoming ever less useful without at least allowing 1st-party JS, this may compromise the effectiveness of this add-on when confronted with antagonists willing to post back data from client-side. It'd be nice to plug this last leak.

(shamelessly copied from NoraCodes/randomua#6)

Subdomain wildcards

As suggested in #2, it would be handy to be able to whitelist all subdomains of a domain in one go. I'm using UserAgent-Switcher to make Microsoft Teams calls work on Firefox, and there are a lot of teams and skype subdomains that get accessed.

So in options / white-list mode I'd like to be able to specify:

teams.microsoft.com
*.teams.microsoft.com
skype.com
*.skype.com

I'll certainly repeat my BTC donation once this feature is released.

Seperate option for cuatom mode

I still want to use the blacklist/whitelist mode while using custom mode. So if a website is registered in custom mode, it will use the custom user agent for that website (override the selected user agent). Otherwise, use the selected global user agent.

Switch UA for every request (within a well-defined set)

Would it be possible to add a new mode to this nice extension, namely to randomly assign a new user-agent for every request, incl. sub-requests, choosing among a well-defined set of user-agents?

It would be even better if it added some form of fuzzing, i.e. taking a string like

Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

and modifying the numbers a bit, i.e. turning it into "Firefox/60.1" or "Gecko/201421112", i.e. only choose higher numbers?

Icon in toolbar should refer to "set to default" instead to "disabled" when add-on set to default string

Hi. Currently with version 0.2.6 when user "reset" option it working very okay. But when mouse set to be over add-on icon in toolbar, then there will be windows will appear inside it written the following:

"UserAgent Switcher (disabled)"

I suggest to change this to the following:

"UserAgent Switcher (set to default)"

This will be better to avoid confusion because add-on is really NOT disabled but in fact is setting to default string.

Best.

Reset does not reset UA

Used extension to spoof iOS on my browser. Pressing the reset button and refreshing tabs did not return me to the normal UA.

Test issue

this is a test issue to check the integration.

UA select page does not fully display when being put into 'More Tools' on Firefox Quantum

System Information

OS: macOS 10.13.1 (17B48), Simplified Chinese
Firefox Version: Firefox Quantum 57.0
Default User Agent String: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:57.0) Gecko/20100101 Firefox/57.0

Expected Behavior

When put into 'More Tools', clicking on the 'User Agent Switcher' will show the full User Agent Selecting page as is.
AS IS

Actual Behavior

The page does not show the right half of the page. The right half of the page is just blank.
The missing right half

How to reproduce this issue

  1. Put the 'User Agent Switcher' into the More Tools via 'Customize Firefox' function.
  2. Exit customization and launch 'User Agent Switcher' from 'More Tools'.
  3. Bang!

Display Current Default Selection in UI Screen

When selecting a default user agent, the selection is made through radio buttons in the UI. After clicking apply, and re-visiting the UI screen, the radio button is no longer filled in. That makes it difficult to determine what's currently selected. That is, one has to match the actual user agent string displayed at the bottom, as opposed to quickly seeing that the default is set to "Chrome 77".

As an additional feature, the current selection should always be pinned at the top (first row).

[Feature Request] More options for custom mode

Hello!

it would be nice to have few more options in Custom mode like:

  • Evaluate also all ports of host when there's not specific one defined. To be able to use
"site.com:1234": "<UserAgent1>"
"site.com": "<UserAgent2>"

In current version rule "site.com" won't work for host www.site.com:5678.

  • Add option to define lists of hosts' (groups) that should use the same user agent.

Thank you in advance for considering these.

--
Best regards,
Tomas.

Show current site's user agent in custom mode

When hovering over the icon, it says the JSON user agent (UA) is used if there is a match otherwise user agent X.

Instead of the generic message, would it be possible to actually display the UA string while visiting a site when there is match in JSON file?

This would make it easier to troubleshoot, and allows one to easily determine if a custom rule is active.

Add Firefox for Android tablet

While you installed Firefox for Android on a tablet device, it provides separate user agent to websites, the “Mobile” string is replaced by “Tablet”. For example:
Mozilla/5.0 (Android 9; Tablet; rv:67.0) Gecko/67.0 Firefox/67.0

[Bug] Incorrect UA in tooltip

Configuration

OS: Windows 7 x64 Pro
Browser: Firefox v68.0.2 (64-bit) (New profile w/ original settings and only this Extension installed)
Extension mode: Custom

{
    "www.google.com": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3835.0 Safari/537.36"
}

Use caching: Off

Problem

On change of tab, icon tooltip is not displaying currently selected=correct UA. Icon look different=OK. Also UA in network requests is OK, Toolkip is not.

Test

OK
Site: https://www.google.com/
Network request:

Host: www.google.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3835.0 Safari/537.36

UA_OK

NotOK
Site: https://addons.mozilla.org/en-US/firefox/addon/user-agent-string-switcher/
Network request:

Host: addons.mozilla.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0

UA_NotOK

Maybe tooltip is not refreshed when "Default UA" (not defined in JSON rules) is used?

Black list mode option does not work at all in Linux !

Hi. 1st, I would like to thank you for your very hard efforts to build such nice add-on !

However, it seem that your add-on has many bugs & need to fixing .....

One of the bugs is that the "black list mode" option does not working at all on Linux ! I'm on Linux Fedora X64 bit Cinnamon edition with Firefox 65.0 X64 bit. Your add-on version 0.2.6 come with setting at this mode by default with empty list. At this stage every thing is working okay (when black list is empty). But just if I add a hostname, then & save - while black list option still selected, your add-on then failed completely to change user agent at ALL sites & at ANY site !! I need to re-empty blacklist & save so as to remake add-on working again ! This mean that blacklist mode is currently useless !

Please your kind fix. The blacklist & whitelist features are the credentials of this add-on .....

UA string includes actual OS, not OS configured in UserAgent-Switcher

W7 box with latest FF and UA-Switcher reports correct configured desired UA to remote website. Exact same configuration on W10 box reports correct desired configured UA except for OS, which remains W10.

W10 box is highly locked down, with mostly STIG compliant settings, so OS configuration may be preventing UA-Switcher from reporting correct configured/desired OS.

Apologies if this is a known issue, I couldn't seem to find posted solution.

Add a quick toggle to enable/disable custom mode

Custom mode is great for defining site-specific user agents, but sometimes I want it off for a specific instance. Currently, this means I need to go and disable the entire extension. It would be great if one of the following were possible:

  • Add a button in the popup menu to temporarily override custom mode for one tab (or one window?).
  • Add a quick toggle button in the popup menu to globally disable custom mode.

Recaptcha: Your computer or network may be sending automated queries

If I change User-agent I get error

Your computer or network may be sending automated queries. To protect our users, we can't process your request right now. For more details visit our help page

I'm not using proxy and it happen if I want to solve it using Audio Challenge.

Minor difference between "custom" mode and "always on"

I'm using this excellent add-on to persuade Facebook to properly display videos inline in my Firefox 60/Linux Mint 18.3 installation. It works very well for this purpose; I can get a nicely usable Facebook page if I pretend to be Safari on MacOS. However:-

I put the relevant user-agent string into the JSON object and selected "custom" mode, and reset the top level user agent. Now, Facebook mostly renders OK but there are subtle differences. There's a scrolling box on replies to posts which makes it difficult to edit, and the layout of items on the top nav bar is fill-justified rather than centered.

Summary: Expect same behavior from domain defined in custom mode and "always on" mode, but see differences.

Possiblity to overwrite user-agent per domain

I dont want to overwrite my user-agent on all websites. But some websites falsely claim firefox is not supported (or not well supported) It would be nice to select an user-agent per domain for such websites

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.