Skip to content

Instantly share code, notes, and snippets.

@todgru
Created March 5, 2021 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todgru/42c6167b273b92b3d7119f576173fb81 to your computer and use it in GitHub Desktop.
Save todgru/42c6167b273b92b3d7119f576173fb81 to your computer and use it in GitHub Desktop.
remove firefox white flash dark mode
/*
about:config
toolkit.legacyUserProfileCustomizations.stylesheets: true
create chrome directory in default release path, found in about:profiles
/Users/$user/Library/Application Support/Firefox/Profiles/xxxxx.default-release/chrome
copy userChrome.css and userContent.css to
/Users/$user/Library/Application Support/Firefox/Profiles/xxxxx.default-release/chrome
*/
@-moz-document url(chrome://browser/content/browser.xhtml) {
#main-window,
browser[type="content-primary"],
browser[type="content"],
tabbrowser#content,
#content,
browser[type="content"] > html {
background: #323234 !important;
}
}
@charset "utf-8";
/* CSS Document */
@-moz-document url("about:newtab") {
body {
background-color: #011326 !important;
}
}
@-moz-document url(chrome://browser/content/browser.xhtml) {
browser[type="content-primary"] {
background: #011326 !important;
}
}

Firefox white flash in darkmode (OS X)

  • in about:config set
toolkit.legacyUserProfileCustomizations.stylesheets: true
  • create chrome directory in default release path, found in about:profiles
/Users/$user/Library/Application Support/Firefox/Profiles/xxxxx.default-release/chrome
  • copy userChrome.css and userContent.css to
/Users/$user/Library/Application Support/Firefox/Profiles/xxxxx.default-release/chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment