I want to view a plaintext file in light color theme in Firefox. Firefox is showing the file in dark mode by default (I am using Firefox dark mode, and I don't want to change that). I could see the css code setting the theme, but could not edit it permanently (it changed back when I reopened the text file). Is there a solution to this?
Asked
Active
Viewed 110 times
1 Answers
1
Yes, you can use something like this in a user-stylesheet:
@-moz-document plain-text-document() {
:root {
background-color: initial !important;
color: initial !important;
}
}
Though we could add a pref for that if you file a bug for it :)

Emilio Cobos Álvarez
- 528
- 5
- 8
-
Perfect! For any future viewer I would mention that you can change style sheet following these steps, for example: https://superuser.com/questions/318912/how-can-i-override-the-css-of-a-site-in-firefox-with-usercontent-css – anotherone Mar 10 '21 at 09:34
-
Sorry, I don't know how to file a bug! – anotherone Mar 10 '21 at 09:34
-
bugzilla.mozilla.org :-) – Emilio Cobos Álvarez Mar 10 '21 at 12:03