Skip to content

Instantly share code, notes, and snippets.

@BeemerJ
Forked from gmolveau/firefox_dark_background.md
Last active April 2, 2024 16:18
Show Gist options
  • Select an option

  • Save BeemerJ/f6f5ad62ed7aea9eda1cf18aa778f51d to your computer and use it in GitHub Desktop.

Select an option

Save BeemerJ/f6f5ad62ed7aea9eda1cf18aa778f51d to your computer and use it in GitHub Desktop.
Firefox dark background / theme for new tab and loading screen

Firefox Dark Background

Removes the awful white flash when loading new pages on Firefox for a nicer dark theme.

Procedure

  1. Type about:config in the URL bar.

  2. Search toolkit.legacyUserProfileCustomizations.stylesheets and double-click the field to set it to true.

  3. Type about:support in the URL bar.

  4. Look for Profile folder field and click on the open button next to it.

  5. Create a folder with the name chrome.

  6. Inside this folder, create a file userChrome.css and paste the following code inside it:

tabbrowser tabpanels { background-color: rgb(28,27,34) !important; }
browser { background-color: #1C1B22 !important; }
  1. Then create another file userContent.css and paste the followind code in it:
@-moz-document url-prefix(about:blank) {
    html > body:empty {
        background-color: rgb(28,27,34) !important;
    }
}
@-moz-document url(about:blank) {
    html > body:empty {
        background-color: rgb(28,27,34) !important;
    }
}
  1. Completely quit and restart Firefox.

Your eyes will thank you...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment