Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Post History

77%
+5 −0
Q&A Control whether Firefox renders web pages in dark or light mode

According to this support answer to "Home page is black", Enter about:config in the address bar. Edit the value of "layout.css.prefers-color-scheme.content-override" to 0 to use a dark b...

posted 3y ago by Quasímodo‭  ·  edited 3y ago by Quasímodo‭

Answer
#5: Post edited by user avatar Quasímodo‭ · 2022-03-02T15:37:05Z (almost 3 years ago)
  • According to [this support answer to "Home page is black"][0],
  • 1. Enter `about:config` in the address bar.
  • 2. Edit the value of "layout.css.prefers-color-scheme.content-override" to
  • ```
  • 0 to use a dark background
  • 1 to use a light background
  • 2 to follow the system GTK theme
  • 3 to follow the browser toolbar theme
  • ```
  • Some notes:
  • - [The option is not documented yet.][1]
  • - Since few web pages offer a dark mode, don't expect
  • this to affect many of them. If you want to force a dark background for any page, there are several add-ons for that, for example [Dark Reader][2].
  • - If you choose `2` and use a global dark theme on KDE, you also need to set a dark GTK theme in the settings manager (_Application style > GNOME/GTK application style_). Choosing only the global theme as dark will have no effect on Firefox, because the former is Qt based and the latter GTK based.
  • [0]: https://support.mozilla.org/en-US/questions/1363994
  • [1]: https://firefox-source-docs.mozilla.org/browser/urlbar/preferences.html
  • [2]: https://github.com/darkreader/darkreader
  • According to [this support answer to "Home page is black"][0],
  • 1. Enter `about:config` in the address bar.
  • 2. Edit the value of "layout.css.prefers-color-scheme.content-override" to
  • ```
  • 0 to use a dark background
  • 1 to use a light background
  • 2 to follow the system GTK theme
  • 3 to follow the browser toolbar theme
  • ```
  • Some notes:
  • - [The option is not documented yet.][1]
  • - It doesn't work if "privacy.resistFingerprinting" is true.
  • - Since few web pages offer a dark mode, don't expect
  • this to affect many of them. If you want to force a dark background for any page, there are several add-ons for that, for example [Dark Reader][2] and [Midnight Lizard][3].
  • - If you choose `2` and use a global dark theme on KDE, you also need to set a dark GTK theme in the settings manager (_Application style > GNOME/GTK application style_). Choosing only the global theme as dark will have no effect on Firefox, because the former is Qt based and the latter GTK based.
  • [0]: https://support.mozilla.org/en-US/questions/1363994
  • [1]: https://firefox-source-docs.mozilla.org/browser/urlbar/preferences.html
  • [2]: https://github.com/darkreader/darkreader
  • [3]: https://github.com/Midnight-Lizard/Midnight-Lizard
#4: Post undeleted by user avatar Quasímodo‭ · 2022-03-01T17:19:50Z (almost 3 years ago)
#3: Post edited by user avatar Quasímodo‭ · 2022-03-01T17:18:15Z (almost 3 years ago)
  • According to [this support answer to "Home page is black"][0],
  • 1. Enter `about:config` in the address bar.
  • 2. Edit the value of "layout.css.prefers-color-scheme.content-override" to
  • ```
  • 0 to use a dark background
  • 1 to use a light background
  • 2 to follow the system theme
  • 3 to follow the browser toolbar theme
  • ```
  • [The option is not documented yet.][1]
  • I want to stress that few web pages offer a dark mode, so don't expect
  • this to affect many of them. If you want to force a dark background for any page, there are several add-ons for that, for example [Dark Reader][2].
  • [0]: https://support.mozilla.org/en-US/questions/1363994
  • [1]: https://firefox-source-docs.mozilla.org/browser/urlbar/preferences.html
  • [2]: https://github.com/darkreader/darkreader
  • According to [this support answer to "Home page is black"][0],
  • 1. Enter `about:config` in the address bar.
  • 2. Edit the value of "layout.css.prefers-color-scheme.content-override" to
  • ```
  • 0 to use a dark background
  • 1 to use a light background
  • 2 to follow the system GTK theme
  • 3 to follow the browser toolbar theme
  • ```
  • Some notes:
  • - [The option is not documented yet.][1]
  • - Since few web pages offer a dark mode, don't expect
  • this to affect many of them. If you want to force a dark background for any page, there are several add-ons for that, for example [Dark Reader][2].
  • - If you choose `2` and use a global dark theme on KDE, you also need to set a dark GTK theme in the settings manager (_Application style > GNOME/GTK application style_). Choosing only the global theme as dark will have no effect on Firefox, because the former is Qt based and the latter GTK based.
  • [0]: https://support.mozilla.org/en-US/questions/1363994
  • [1]: https://firefox-source-docs.mozilla.org/browser/urlbar/preferences.html
  • [2]: https://github.com/darkreader/darkreader
#2: Post deleted by user avatar Quasímodo‭ · 2022-03-01T14:10:00Z (almost 3 years ago)
#1: Initial revision by user avatar Quasímodo‭ · 2022-03-01T14:01:43Z (almost 3 years ago)
According to [this support answer to "Home page is black"][0],

1. Enter `about:config` in the address bar.

2. Edit the value of "layout.css.prefers-color-scheme.content-override" to

```
0 to use a dark background
1 to use a light background
2 to follow the system theme
3 to follow the browser toolbar theme
```

[The option is not documented yet.][1]

I want to stress that few web pages offer a dark mode, so don't expect
this to affect many of them. If you want to force a dark background for any page, there are several add-ons for that, for example [Dark Reader][2].

[0]: https://support.mozilla.org/en-US/questions/1363994
[1]: https://firefox-source-docs.mozilla.org/browser/urlbar/preferences.html
[2]: https://github.com/darkreader/darkreader