cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to remove "Private browsing" text in Firefox 119

ryanbin
Making moves

Previously, you could remove the "Private browsing" text from the upper right corner of a private window (and just have the icon appear) by setting browser.privatebrowsing.enable-new-indicator to false in about:config. This setting seems to be have been broken in version 119. Can it be fixed?

2 ACCEPTED SOLUTIONS

Agentvirtuel
Collaborator

1.png

Hello

Try https://www.reddit.com/r/FirefoxCSS/comments/yiomss/remove_label_from_the_new_private_browsing

#private-browsing-indicator-with-label > label {
	display: none;
}

Copy/paste the code (for example) into Notepad
Save
Type: All files
userChrome.css

Create a chrome folder
Move userChrome.css to your chrome folder

Go to your profile folder
https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-prof... Open the corresponding folder
Move your chrome folder to your profile folder

about:config https://support.mozilla.org/en-US/kb/about-config-editor-firefox
Searching for preferences toolkit.legacyUserProfileCustomizations.stylesheets
To change a boolean (true-false) preference's value, double-click on the preference. to set it to true

Stop Firefox start Firefox

2.png

View solution in original post

MaximilianKohlr
Making moves

They changed it again. One of these should work:

 

.private-browsing-indicator-label{display: none;}

.private-browsing-indicator-label{display:none !important;}

.private-browsing-indicator-with-label {
    display:none !important;
}

 

https://github.com/MrOtherGuy/firefox-csshacks/issues/478#issuecomment-2564849036

View solution in original post

10 REPLIES 10

Agentvirtuel
Collaborator

1.png

Hello

Try https://www.reddit.com/r/FirefoxCSS/comments/yiomss/remove_label_from_the_new_private_browsing

#private-browsing-indicator-with-label > label {
	display: none;
}

Copy/paste the code (for example) into Notepad
Save
Type: All files
userChrome.css

Create a chrome folder
Move userChrome.css to your chrome folder

Go to your profile folder
https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-prof... Open the corresponding folder
Move your chrome folder to your profile folder

about:config https://support.mozilla.org/en-US/kb/about-config-editor-firefox
Searching for preferences toolkit.legacyUserProfileCustomizations.stylesheets
To change a boolean (true-false) preference's value, double-click on the preference. to set it to true

Stop Firefox start Firefox

2.png

That worked, thanks! Appreciate the quick assistance!

NestorLA
Making moves

 

 

NestorLA
Making moves

I fell you, i too want to edit the free code browser wiout learning css

MaximilianKohlr
Making moves

This is ridiculous. Mozilla keeps making things worse even though they have no pressure to go down the same path of ensh**tification, they're doing it willingly. How incredibly frustrating.

I agree. It is too much stuff, too much stress and it is stealing too much of my time.

MaximilianKohlr
Making moves

They changed it again. One of these should work:

 

.private-browsing-indicator-label{display: none;}

.private-browsing-indicator-label{display:none !important;}

.private-browsing-indicator-with-label {
    display:none !important;
}

 

https://github.com/MrOtherGuy/firefox-csshacks/issues/478#issuecomment-2564849036

ryanbin
Making moves

Many thanks @MaximilianKohlr ! I had given up on this when they broke it this time and was just going to live with it. I'm on Linux Mint running Firefox 133.0.3 and just the first line was enough to display only the icon with no text.

So this is what worked for me in my userChrome.css file (note the leading period is NOT a typo):

 

.private-browsing-indicator-label{display: none;}

 

If I included the other two lines, it removed both the text and the icon.

Haven't been able to get it to work on Windows 11 (Firefox 133.0.3). Including all three lines appears to do nothing. But Linux is my daily driver, so I'm happy. Thanks again! (And I wish they would stop breaking this!)

Agentvirtuel
Collaborator

Hello

Addition, for information purposes
Browser Toolbox https://firefox-source-docs.mozilla.org/devtools-user/browser_toolbox/index.html

By way of illustration1.png

Addition, test userChrome.css https://www.youtube.com/embed/p844gCDhqnU by way of illustration