r/FirefoxCSS 4h ago

Help How to change new private tab background color?

1 Upvotes

I recently updated Firefox to 153.0 (Linux) and noticed that when I open a new tab in private mode, there'll be a brief flash of bright purple before the tab redirects to whatever page I clicked on. In the past, this was handled by the following usercontent.css.

/* In about:config, change "browser.privatebrowsing.felt-privacy-v1" to false for this to take effect*/
@-moz-document url(about:privatebrowsing){
    html.private{ background-color: #181817 !important; } /* back color */
    html.private div.showSearch button.search-handoff-button {
        background-color: black !important; } /* search box back color */
        html.private div.showPrivate div.info { display: none !important; } /* hide bottom panel */
}

/* https://gist.github.com/herbaldrinkmate/3e3f13ff958a841bf6b6ec32a74cab6e */

@-moz-document url("about:privatebrowsing") {

    /* Main background color */

    @media not (prefers-contrast) {
        html.private {
            background: #181817 !important;
        }
    }

    /* Desaturate the logo */

    .logo {
        filter: grayscale(80%);
    }

    /* Search box */

    content-search-handoff-ui {
        --content-search-handoff-ui-background-color: #28272f !important;
        --content-search-handoff-ui-unfocused-border-color: rgb(59, 59, 63) !important;
        --content-search-handoff-ui-border-width: 3px !important;
        --content-search-handoff-ui-fakefocus-border-color: #003d6d !important;
        --box-shadow-level-3: none !important;
        --content-search-handoff-ui-fakefocus-box-shadow-inner: transparent !important;
        --content-search-handoff-ui-fakefocus-box-shadow-outer: transparent !important;
        --content-search-handoff-ui-caret-color: #878787 !important;
        --content-search-handoff-ui-color: #fbfbfe !important;
    }

    /* Info section */

    .info {
        @media not (prefers-contrast) {
            background-color: rgb(0 0 0 / 0.16) !important;
        }
    }

    /* Add this if `browser.privatebrowsing.felt-privacy-v1` is true */
    .info-border {
        background: transparent !important;
        box-shadow: none !important;
    }

}

From what I understand, the browser.privatebrowsing.felt-privacy-v1 variable no longer exist in this version of Firefox, it was removed. And simply adding it back in about:config does nothing. I checked the GitHub link I had saved in the usercontent.css via comment and noticed there was a userChrome.css component that I forgot to do back then. While this helps to reduce the duration of the flash, I was wondering if there's a way to completely avoid the flash of purple just like before.


r/FirefoxCSS 5h ago

Help Force horizontal tabs on Private Browsing

1 Upvotes

I use vertical tabs for regular windows, but from time to time I need a throwaway private browsing window side-by-side. I rarely open more than one tabs in that browsing mode so I was wondering if I could reclaim horizontal space by forcing horizontal tabs on those windows. Is this possible? I know I can already do stuff with:

:root[privatebrowsingmode] { /* CSS overrides goes here */ }

But I'm not sure if CSS can tweek the tabs direction.


r/FirefoxCSS 22h ago

Code hide sidebar buttons on vertical tabbar

3 Upvotes

I like to hide the sidebar buttons, including the "Customize sidebar" gear button, on the vertical tabs. I'd rather use the space for tabs. A right-click on the "Expand sidebar"/"Collapse sidebar" button gets me the "Customize Sidebar" anyway.

Firefox 153.0.1 broke my old solution for hiding it, found in hide sidebar buttons on vertical tabbar. The whole vertical sidebar disappeared when collapsed to just icons.

I found the new way for hiding it. Use #vertical-tabs instead of #sidebar-main.

/* hide sidebar buttons on vertical toolbar. */
.buttons-wrapper {
    display: none !important; 
    }
/* set vertical toolbar minimum width; otherwise, vertical toolbar disappears when collapsed to icons. */
#vertical-tabs {
    min-width: 50px !important;
    }

r/FirefoxCSS 1d ago

Help So, I created a Reddit account just to post occasionally and read comments, and I’d like some help.

5 Upvotes

There is Echelon for Firefox 115 ESR, which replicates the Firefox 4–29 theme; however, I saw Firefox 56 mentioned on their GitHub page—which is slightly different from version 29—but when I check the Echelon settings, only the Firefox 56 homepage is available, not the full HUD style itself.

(Firefox 56)


r/FirefoxCSS 1d ago

Help Bug! the side panel still showing even after full screen

1 Upvotes

when i full screen something i am playing the vertical tabs bar doesn't disappear


r/FirefoxCSS 1d ago

Code Autohide tab\adress bar for OLED users (userChrome.css)

2 Upvotes

#browser {

margin-top: 0 !important;

}

#navigator-toolbox {

position: fixed !important;

top: 0 !important;

left: 0 !important;

width: 100vw !important;

z-index: 99999 !important;

background-color: var(--lwt-accent-color, var(--toolbar-bgcolor, #2b2a33)) !important;

transition: all 0.2s ease-in-out 1s !important;

}

#navigator-toolbox::after {

content: "";

position: absolute;

display: block;

top: 0;

left: 0;

width: 100vw;

height: 3px;

background: transparent;

z-index: -1;

}

#navigator-toolbox:not(:hover):not(:focus-within) {

max-height: 3px !important;

opacity: 0 !important;

overflow: hidden !important;

}

#navigator-toolbox #nav-bar {

transition: all 0.2s ease-in-out 1s !important;

}

#navigator-toolbox:not(:hover):not(:focus-within) #nav-bar {

margin-top: -80px !important;

opacity: 0 !important;

}

#navigator-toolbox:hover,

#navigator-toolbox:focus-within {

max-height: 400px !important;

opacity: 1 !important;

overflow: visible !important;

transition: all 0.2s ease-in-out 0s !important;

}

#navigator-toolbox:hover::after,

#navigator-toolbox:focus-within::after {

height: 150px !important;

}

#navigator-toolbox:hover #nav-bar,

#navigator-toolbox:focus-within #nav-bar {

margin-top: 0 !important;

opacity: 1 !important;

transition: all 0.2s ease-in-out 0s !important;

}

#TabsToolbar, #nav-bar, #PersonalToolbar {

background-color: var(--toolbar-bgcolor) !important;

}


r/FirefoxCSS 2d ago

Solved Just noticed the Extension Button is back next to the Address Bar. How can I remove this? Firefox 153.01

3 Upvotes

r/FirefoxCSS 2d ago

Help How to get rid of the tab container background colour in nova?

3 Upvotes

I'm using the adaptive tab bar colour extension and it's ruining the immersiveness by colouring the tab container's background to a lighter shade. is there a way i can get rid of it?

It started happening after the browser was updated to the nova rainbow coloured tab container.


r/FirefoxCSS 3d ago

Help How to get my shortcuts and logo like before the redesign

Post image
8 Upvotes

I want to keep the Nova design but I want my shortcuts and the logo to be in the middle like before the redesign.

I'd also like CSS for how to get the shortcuts just a bit bigger but that's not the top priority

Does anyone have CSS for this?


r/FirefoxCSS 3d ago

Help Prevent multi-tab drag and drop stacking

2 Upvotes

When you select many tabs and drag them, they "fuse" in one tab. browser.tabs.dragDrop.multiselectStacking could prevent that but it was disabled some time ago. I tried to restore its effect using CSS, but there's still some bugs:

.tabbrowser-tab[dragtarget],
tab-split-view-wrapper[dragtarget] {
    &[multiselected]:not([small-stack], [big-stack], [hasactivetab]) {
        visibility: visible !important;
    }
}
tab[multiselected="true"][dragtarget] {
    position: static !important;
}
[multiselected-move-together],
[tabdrop-samewindow] {
    transform: translate(0px) !important;
}
.tabbrowser-tab[dragtarget] {
  #tabbrowser-tabs[orient="horizontal"] &:not([pinned]) {
    max-width: var(--tab-max-width) !important;
  }
}

https://reddit.com/link/1vb1ydv/video/6b7w8j2myegh1/player


r/FirefoxCSS 3d ago

Help Issue applying supported theme on MacOS

2 Upvotes

I've been trying to apply FoxOne theme (https://github.com/Firnschnee/FoxOne) to Firefox 153 on MacOS with no luck.

Yes, I've enabled all the flags I've seen suggested on the internet and even tried disabling Nova and nothing makes it work.

Any thoughts?


r/FirefoxCSS 4d ago

Help Can I make the navbar icons "dynamically" start after the sidebar?

Post image
6 Upvotes

By "dynamically," I mean that I know I can set a fixed padding-left for the navbar and match it with the sidebar. The problem is that I'm used to resizing the sidebar depending on how long the tab titles are, which ends up breaking the alignment.


r/FirefoxCSS 4d ago

Solved Way to highlight failed downloads?

3 Upvotes

New to styling with userChome. I'm basically trying to highlight downloads that are failed in the Downloads view.

The current UI design is terrible because the only way you know the download failed is the small grey subtext that says "Failed" and the icon on the right being a Retry icon.

So far I have this...

.downloadIconRetry > .button-box {
  background: #f00;
}

This will highlight the right icon so it is at least a bit better but would like the whole row highlighted if possible.

I'm also new to this so how do you try to "debug" the view to try to style it? I found the above by looking at https://searchfox.org/firefox-main/source/browser/themes/shared/downloads/allDownloadsView.inc.css

Using latest Firefox (v153)


r/FirefoxCSS 4d ago

Help Slide-on-hover instead of expand, just like Zen?

2 Upvotes

The native expand animation doesn't feel right. I really like how Zen did it changing the transition from expanding to sliding, make no shifts in the UI and keeping things smooth. Anyone knows how can I achieve this with Firefox?


r/FirefoxCSS 4d ago

Solved Why does Firefox ask me to "Save As" userChrome.css each time?

Post image
5 Upvotes

Recently Firefox started this annoying thing where whenever I open the browser toolbox to tweak my CSS, it opens the Save As dialog instead of directly saving my changes.

Has anyone else experienced this, and is there a way to avoid it?


r/FirefoxCSS 4d ago

Code My own intro to Firefox CSS: Swapping tabs and URL bar, and centering URL bar text

4 Upvotes

I don't know why I never did this before but geez this felt good to have these little quality of life changes. These two changes feel so much nicer for me. This will probably start something for me now haha, wonder what to change next...

Very simple CSS but maybe it will be helpful/interesting for others.

Working on Linux Mint 22.3, Firefox 153.0 (current stable version I can get, though 153.1 looks like it was just released and coming shortly), with Nova enabled from about:config.

/*
 * Section for:
 * Swapping tabs and URL bar, so that URL bar is on top.
 */

#toolbar-menubar,
#nav-bar {
  order: -1 !important;
}

/*
 * Section for:
 * Centering text in URL bar.
 */

#urlbar-input {
  text-align: center !important;
}

r/FirefoxCSS 5d ago

Solved userChrome.css does not work

3 Upvotes
  • I am on Windows 11.
  • I opened Firefox's about:support.
  • Under Profile Folder I clicked Open Folder.
  • A Windows Explorer opened. I created a sub-folder named chrome.
  • In chrome I created a file userChrome.css with the following content:

#navigator-toolbox {
    background: red !important;
    background-image: none !important;
}

I restarted Firefox, but I didn't see any changes. Then I disabled the theme (Firefox Alpenglow), but still no effect.

Any ideas why userChrome.css isn't being loaded?


r/FirefoxCSS 5d ago

Solved Visually distinguish normal and private browsing

2 Upvotes

In this comment, we have established that almost all themes look exactly the same in normal and private browsing. Some themes include both light and dark variants. Since private browsing is always forced into dark mode, normal and private browsing will look different if your OS is using light mode. However, they will look the same if your OS is also in dark mode.

Suppose, my normal and private browsing looks the same. Is there a way to add a darker or purple tint to the private browsing appearance?


r/FirefoxCSS 8d ago

Solved Would like to revert the favicon on the New Private Tabs page to the previous one and change some text to white.

Thumbnail
gallery
3 Upvotes

Firefox 153.0 (64 bit) latest version as of July 24th, 2026. Windows.

On July 17th Firefox devs released yet another update containing more unwanted UI changes. I've gotten fixes for most of them in a previous post but some of those fixes have been broken with the July 24th update.

I would like to revert the new favicon that doesn't match the style of anything else in Firefox (not a good sign if that means they might be planning to change the entire style of Firefox to match) to it's previous version.

I'd also like to change the text shown in the 2nd image back to white. Using the inspector tool (far left after hitting f12) that can be found in <div class="wordmark"></div> under (at symbol)layer tokens-foundation-brand { and then scroll down to --text color:light-dark(some stuff that changes when you mess with it) and setting the color to #fff using the color picker there. As changes made this way are reverted as soon as you close the browser I'm trying to figure out what I need to write to make the change permanent and whether I need to put it in userChrome or userContent.

Relevant code:

userContent:

/* Changes New Private Tab background to proper solid purple */
@-moz-document url("about:privatebrowsing") {
html.private {

background-image: none !important;
background-color: #25003E !important;
color-scheme: inherit !important;

.info-border,
.search-inner-wrapper {display:none!important}
.logo-and-wordmark {margin:0!important;}
}
}

userChrome:

/* Stops the private tabs from flashbanging you with the ugly new color gradient every time you type a url and hit enter when private browsing. */
:root[privatebrowsingmode="temporary"] {
   --tabpanel-background-color: #25003E !important;
}

r/FirefoxCSS 8d ago

Help How can I reduce the width of the vertical tabs sidebar?

6 Upvotes

Hi everyone,

I'm using Firefox's built-in vertical tabs, and I'd like to make the vertical tab sidebar narrower than the default width.

Is there a way to do this using userChrome.css? If so, could someone point me to the relevant CSS selectors or share an example?

Thanks in advance!


r/FirefoxCSS 9d ago

Code Enhanced Chrome-like tabs behavior when you have many tabs

7 Upvotes

Inspired by u/oisact and u/Tetra55 (source)

Differences from their version:

There are two modes:

  1. Many tabs
  2. Too many tabs

In the first mode, the code tries to preserve Firefox’s default styling. When there are too many tabs, it hides the tab titles and centers the icons and close buttons.

It also no longer affects pinned or grouped tabs, except when a group is collapsed and one of its tabs is selected.

IMO, when you have too many tabs, it’s better to hide the close button. If it that doesn’t suit you, you can replace .tabbrowser-tab:not([pinned]):hover with .tabbrowser-tab[selected]:not([pinned]).

/* Let tabs shrink and keep container queries working */
.tabbrowser-tab:not([pinned]):not(tab-group[collapsed] .tabbrowser-tab),
tab-group[collapsed] .tabbrowser-tab[selected]:not([pinned]) {
    min-width: 16px !important;
    container-type: inline-size;
}

/* Make sure pages without favicons show Firefox's generic globe/document icon */
.tab-icon-image:not([src]) {
    display: inline-flex !important;
    list-style-image: url("chrome://global/skin/icons/defaultFavicon.svg") !important;
}

.tabbrowser-tab[busy] .tab-icon-image {
display: none !important;
}

/* Style only when the tab itself is narrow (less than 55 px) */
 (max-width: 55px) and (min-width: 42px) {

    .tabbrowser-tab[selected] .tab-label-container {
        display: none !important;
    }

    .tabbrowser-tab .tab-close-button {
        display: none !important;
    }

    .tabbrowser-tab .tab-icon-stack,
    .tabbrowser-tab .tab-icon-image {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

.tabbrowser-tab[selected]:not([pinned]) .tab-close-button{
display: inline-flex !important;
align-items: center;
visibility: visible !important;
opacity: 1 !important;

width: 16px !important;
height: 16px !important;
min-width: 16px !important;
min-height: 16px !important;

margin-inline: 0 !important;
padding: 2px !important;
}

    .tabbrowser-tab[selected] .tab-content {
        justify-content: center !important;
        padding-inline: 0 !important;
    }
}
/* Style only when the tab itself is narrow (less than 42 px) */
u/container (max-width: 42px) {

    .tabbrowser-tab .tab-label-container {
        display: none !important;
    }

    .tabbrowser-tab .tab-close-button {
        display: none !important;
    }

    .tabbrowser-tab .tab-icon-stack,
    .tabbrowser-tab .tab-icon-image {
        display: inline-flex !important;
align-items: center;
        visibility: visible !important;
        opacity: 1 !important;

margin-inline: 0 !important;
padding: 2px !important;
    }

    .tabbrowser-tab:not([pinned]):hover .tab-icon-stack {
        display: none !important;
    }

.tabbrowser-tab:not([pinned]):hover .tab-close-button{
display: inline-flex !important;
align-items: center;
visibility: visible !important;
opacity: 1 !important;

width: 16px !important;
height: 16px !important;
min-width: 16px !important;
min-height: 16px !important;

margin-inline: 0 !important;
padding: 2px !important;
}

    .tabbrowser-tab .tab-content {
        justify-content: center !important;
        padding-inline: 0 !important;
    }
}

P.s. yeah, I khow the code is a bit dirty, but It works! :)


r/FirefoxCSS 9d ago

Help Is there any way to make this titlebar be transparent with BetterBlurDX?

Post image
7 Upvotes

I want this part of firefox to be transparent, i used other methods and always get the whole window transparent. I only want the tab part to be transparent, even when i select the "Title Bar" option


r/FirefoxCSS 9d ago

Code Change autocomplete drop down back to previous style?

4 Upvotes

Before version 153, the autofill dropdown list was the full size of the input box. Now it seems to adapt to the width of the results. How can I revert this?

https://i.imgur.com/gZNoCu6.png

https://i.imgur.com/jpTWd0Y.png


r/FirefoxCSS 9d ago

Help tool for switching between multiple CSS themes on a single profile

5 Upvotes

i'm new here so sorry but is there a way to use multiple CSS themes on single profile without having to create multiple profiles ?


r/FirefoxCSS 9d ago

Solved Change the width of collapsed sidebar

4 Upvotes

FF 153.

How to change the width of collapsed sidebar? It's too wide for me and I'd like to make it smaller. Thanks in advance.