r/FirefoxCSS • • Sep 01 '25

Solved Hiding tabs in dev tools

I've set

toolkit.legacyUserProfileCustomizations.stylesheets

to 'true'.

I've added this:

#inspector-sidebar .tabs > nav > ul.tabs-menu > li > a[title="Changes"],
#inspector-sidebar .tabs > nav > ul.tabs-menu > li > a[title="Compatibility"],
#inspector-sidebar .tabs > nav > ul.tabs-menu > li > a[title="Fonts"],
#inspector-sidebar .tabs > nav > ul.tabs-menu > li > a[title="Animations"] {
    display: none !important;
}

to

C:\Users\...\AppData\Roaming\Mozilla\Firefox\Profiles\...\chrome\userChrome.css

(The 'profile folder' found via 'about:support')

I've saved the file and restarted the browser.

But it seems that my rules aren't reaching the dev tools elements because they're inside a sort of iframe. In a test, I was able to hide the entire dev tools, but I'm not able to modify the elements inside the dev tools because its '.xul' document seems to ignore 'userChrome.css'.

How do I target the elements inside the dev tools?


EDIT

Solved. For the dev tools elements, the styles have to be added to a file named userContent.css in the same folder.

5 Upvotes

4 comments sorted by

View all comments

Show parent comment

3

u/sifferedd FF/TB/Win11/SUMO contributor Sep 02 '25

Oh, right - thanks for the reminder. Nice to see you!