Comments (5)
The problem appears on all sites where the user agent is evaluated during the page load. Due to the asynchronous nature of the callback passed to chrome.runtime.sendMessage
the content script seems to run into a timing issue. Even though the script itself is executed before the page's Javascript, the callback function - which overwrites the user agent field - is called after the page's Javascript was executed and hence could potentially already fetch the untampered user agent.
This seems to be the case in both examples mentioned by @weranda, with internet.yandex.ru having additionally the issue listed at #24.
from random-user-agent.
#28 should fix this issue @weranda @tarampampam
There are still issues with embedded iframes though, which might not be fixable.
from random-user-agent.
There have been some issues with the fix (#28 (comment)) and the associated PR has been temporarily closed.
Any input on that issue would be appreciated (passing data in Chrome synchronously seems to be tricky)
from random-user-agent.
@neroux are you here, dude?
from random-user-agent.
@neroux 🔥 The fixed version (v3.2.0) has been released recently! Please check that everything is exactly as you wanted :)
from random-user-agent.
Related Issues (20)
- URL with custom user-agents list HOT 2
- Addon is adding a base64 encoded cookie to outbound requests HOT 2
- Random `Accept-Language` and `Accept` headers HOT 1
- Can't download Windows 10 ISO when the extension is on HOT 1
- Extension not working with chrome headless on Ubuntu HOT 2
- support requestly
- Need Edge && Opera user agent for mobile device
- Cloudflare Verification HOT 1
- +1%
- can't work well with ModHeader HOT 1
- Hope the automatically generated user agent conforms to the official default style HOT 2
- JavaScript has the potential to leak authentic User-Agent and operating system information. HOT 3
- Feature Request: Multi-Account Container Support
- Outdated guide for mobile devices HOT 2
- There will be a problem of not being able to use the user agent. HOT 2
- Support hotkeys with multiple synced clients on different platforms HOT 3
- 🎉 Need help with `v4` alpha|beta testing HOT 16
- Support for Safari web extension HOT 7
- Glitchy lines while hovering over the youtube video player HOT 3
- Problems with modifying the User Agent in Firefox after the update HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from random-user-agent.