Git Product home page Git Product logo

Comments (6)

sereneblue avatar sereneblue commented on May 23, 2024

I've identified the issue. It seems the document.write function call is being run before the extension gets a chance to modify anything.

I'll update the UI on the profile tab.

from chameleon.

sereneblue avatar sereneblue commented on May 23, 2024

The execution of the document.write function call happens almost immediately after the async call that gets the injection script data. I've experimented with a small delay (would have been horrible hack) but it rarely worked. I've refactored some code to reduce the execution time for the async call but it's not enough.

The best solution I can come up with is to default all the variables being modified to an empty value before the injection script spoofs them. This generally shouldn't be an issue for normal websites since there's usually a few resources being loaded giving the extension enough time to build and execute the injection script.

from chameleon.

945fc41467 avatar 945fc41467 commented on May 23, 2024

If I understand well, the website can have the real UA if it load fast enough.
I found another one : http://pgl.yoyo.org/http/browser-headers.php . Here, the OS is spoofed, but not the browser.
Thank for your work.

from chameleon.

sereneblue avatar sereneblue commented on May 23, 2024

Where do you see the OS on that page? Chameleon doesn't have any issues with spoofing the header values that are returned.

from chameleon.

sereneblue avatar sereneblue commented on May 23, 2024

I've changed it so that the default value is Chrome on Windows 10. An empty useragent could break some sites like Discord. Sadly, the user won't be able to change this because it goes back to the root issue. I just realized that I can read the settings in the content script but the code won't block so it won't change anything.

from chameleon.

sereneblue avatar sereneblue commented on May 23, 2024

@945fc41467 v0.6.7 should fix this issue.

from chameleon.

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.