Git Product home page Git Product logo

Comments (5)

neroux avatar neroux commented on June 7, 2024

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.

neroux avatar neroux commented on June 7, 2024

#28 should fix this issue @weranda @tarampampam

There are still issues with embedded iframes though, which might not be fixable.

from random-user-agent.

neroux avatar neroux commented on June 7, 2024

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.

tarampampam avatar tarampampam commented on June 7, 2024

@neroux are you here, dude?

from random-user-agent.

tarampampam avatar tarampampam commented on June 7, 2024

@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)

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.