Glam Prestige Journal

Bright entertainment trends with youth appeal.

In Firefox, I want to have both browser.in-content.dark-mode and privacy.resistFingerprinting set to true. However, the latter setting, as discussed in this issue, masks this setting and sets the preferred color scheme (prefers-color-scheme) to light. How do I force prefers-color-scheme to be dark?

1 Answer

At the issue discusses, the browser theme is set to light in order to increase privacy and make fingerprinting you harder. Overriding this preference will reduce privacy marginally but save your eyes. Without installing a whole dark theme (e.g., Dark Reader), which in my experience can cause a little bit of lag and a less appealing color scheme (compared to what would be shown with prefers-color-scheme="dark", you can override prefers-color-scheme. There is an extension that does just that called Dark Website Forcer.

Alternatively, for extra credit, you can always modify the appropriate source code of firefox, such as Document.cpp to uses the Dark preference when ShouldResistFingerprinting is true. Other defaults to Light should also be overridden. Then you'll have to build. The extension is obviously the easier way to go and just as effective. This will be the case until the aforementioned issue is resolved.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy