Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode settings revert to automatic after every restart #285

Closed
wealstarr opened this issue Apr 4, 2024 · 1 comment
Closed

Dark mode settings revert to automatic after every restart #285

wealstarr opened this issue Apr 4, 2024 · 1 comment

Comments

@wealstarr
Copy link

Hello,

The website appearance setting in the Firefox:
Capture

I change it to dark mode but every time I start a new browser session, it reverts to automatic. I reverted to the profile I backed up and the setting sticks. I looked into user.js to see if I can find anything that could pertain to this specific setting so that I can change it permanently but unable to do so.

Which setting in user.js should I change to make it stick to the dark more ? will any kind soul points it out to me ?

Any help will be greatly appreciated.

@wealstarr wealstarr changed the title Dark mode settings return to automatic after every restart Dark mode settings retvert to automatic after every restart Apr 4, 2024
@wealstarr wealstarr changed the title Dark mode settings retvert to automatic after every restart Dark mode settings revert to automatic after every restart Apr 4, 2024
@yokoffing
Copy link
Owner

Betterfox/Peskyfox.js

Lines 93 to 100 in c366439

// PREF: preferred color scheme for websites
// [SETTING] General>Language and Appearance>Website appearance
// By default, color scheme matches the theme of your browser toolbar (3).
// Set this pref to choose Dark on sites that support it (0) or Light (1).
// Before FF95, the pref was 2, which determined site color based on OS theme.
// Dark (0), Light (1), System (2), Browser (3) [DEFAULT FF95+]
// [1] https://www.reddit.com/r/firefox/comments/rfj6yc/how_to_stop_firefoxs_dark_theme_from_overriding/hoe82i5/?context=3
user_pref("layout.css.prefers-color-scheme.content-override", 2);

Add user_pref("layout.css.prefers-color-scheme.content-override", 0); to your Overrides section of the user.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants