Skip to content

Instantly share code, notes, and snippets.

@toscani
Last active February 27, 2020 19:52
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 toscani/78092bd3511278056a9b4865314fd3de to your computer and use it in GitHub Desktop.
Save toscani/78092bd3511278056a9b4865314fd3de to your computer and use it in GitHub Desktop.

Open about:config.

Set toolkit.legacyUserProfileCustomizations.stylesheets to true.

Open about:profiles.

Click "Open Folder" on the "Root Directory" row on the profile in use.

Create the folder "chrome".

Create userContent.css, and add:

@-moz-document url(chrome://browser/content/browser.xul)
{
    browser[type="content-primary"],
    tabbrowser tabpanels,
    #appcontent > #content {
        background: #111 !important;
    }
}

@-moz-document url(about:blank), url(about:home), url(about:newtab) {
    html, body {
        background: #111 !important;
    }
}

Create userChrome.css, and add:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/*.tabbrowser-tabbox { background-color: #111 !important; }*/

#browser vbox#appcontent tabbrowser,
#content,
#tabbrowser-tabpanels,
browser[type="content"][primary="true"],
browser[type=content] > html {
    background: #111 !important;
}

Customize to your desire.

Inside about:profiles, click "Restart normally".

Restart after every customization.

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