Blog

How does an antidetect browser change its fingerprint: scripts or engine patches?

Published December 5, 2026 · Updated December 5, 2026 · Mirage Browser

There are two ways. Scripts injected into every page overwrite what the browser reports, but a page can often notice the overwrite itself. Changes compiled into the browser engine make the browser report other values natively, with nothing extra on the page. Mirage takes the second way on its Firefox core and builds its Chromium core the same way.

What does “changing the fingerprint” mean?

A site learns a lot about the browser through JavaScript: the user agent, screen size, languages, time zone, fonts, the graphics card behind WebGL, how canvas and audio are rendered. Together these values form the fingerprint, see What is browser fingerprinting?. An antidetect browser gives each profile its own set of values, so two profiles look like two different computers. The question is where the values are changed.

How does script injection work?

The browser itself stays an ordinary Chrome or Firefox. Before any page script runs, an extension or an automation tool adds its own script to the page. That script replaces properties such as navigator.platform or screen.width and wraps functions such as canvas toDataURL so they return other results.

It is quick to build and works with any stock browser, which is why many tools and simple stealth plugins use it.

Why can a page notice injected scripts?

Because JavaScript lets a page inspect JavaScript. A few examples of what detection scripts check:

  • A replaced function can look different from a native one, for instance in what Function.prototype.toString returns or in its properties.
  • A value overwritten in the main page is often left unchanged in a web worker or an iframe, where the injected script did not run.
  • Values that are measured rather than read, such as how text is laid out or how long an operation takes, do not follow the overwritten value.

Open projects such as CreepJS count these contradictions as “lies”. One detected lie is a stronger signal than any single unusual value, because ordinary browsers have none.

How do engine patches differ?

The values are changed in the source code of the browser engine, in C++, and the browser is compiled with these changes. When a page asks for the screen size, the engine answers with the profile’s value through its normal code path. There is no wrapper to inspect, and workers and iframes get the same answer as the main page, because they ask the same engine.

The cost is on the vendor’s side: the browser has to be built from source, and the changes have to be carried to every new engine version.

How does Mirage do it?

  • Firefox core. Built on Camoufox, an open-source Firefox fork that changes fingerprint values in C++. The profile’s values are handed to the browser when it starts. Mirage does not inject scripts into pages to change the fingerprint.
  • Chromium core. Built the same way, on an open-source Chromium fork that changes values in C++ and takes them at startup. It is in development and not yet offered in the app. See browser cores for its status.
  • The same rules for both. Each profile gets a whole device recorded from a real computer, by default with the same operating system as your computer. Time zone, language and location follow the proxy. How these rules work is on browser fingerprints.

Does an engine-level change make a profile invisible?

No. It removes one class of contradictions, nothing more. Some values are produced by your own hardware: graphics are drawn by your graphics card, and a site can measure how fast your computer is. A profile that claims a very different machine still contradicts what the hardware shows, which is why Mirage defaults to your computer’s operating system. Behaviour, IP reputation and account history are outside the browser entirely.

How can I see what a site sees?

  1. Open the profile and go to our browser check. It shows the values a page can read and explains each.
  2. In Mirage, run Self-check from the profile menu. Check inside the browser starts the profile and confirms that the engine really applies the profile’s values.
  3. Compare the result with a few public test pages, such as CreepJS, and look for contradictions rather than for a single “score”.

Where do these facts come from?