r/firefox•
funacc

Is there a list of all the things I can modify in userChrome.css?

Hello!

I was thinking of trying to write my own userChrome.css file. The problem is I don't know what I can modify using this file. Is there some extensive list floating on the internet somewhere?

Things I'd like to do:

  1. Tab bar - change (get rid of) separators, change what focused tab looks like (I'm not a fan of the obliques), get rid of the "all tabs" button
  2. Url bar - get rid of the back button, the little reload button and the dropdown arrow next to it, getting rid of the separator next to the hamburget menu
  3. If possible, making the url bar autohide.

Thanks for pointing me to relevant sources!

Posted Sep 28, 2015, 11:44 PM UTC

65

I don't know of a specific list.

You can load "chrome://browser/content/browser.xul" into a new tab and with the web developer tools to get relevant names.

You can also make on the fly changes in the style editor (in the web developer tools). Or using Stylish (third party extension).

6
caligari87•

Basically the only way is to explore the CSS stylesheets for the Firefox interface, as u/01111010011001010110 said. If you didn't see it, look here for my recent misadventures in restyling the active tab.

The tutorials starting at the MDN article for modifying the default skin may be helpful, as well as the MozillaZine userChrome.css page and chrome element names page. I think the last one is probably the closest to what you want. It also mentions the DOM Inspector which can be very helpful once you figure out how to use it.

If you don't want to go through all that, look into addons like Classic Theme Restorer or LessChrome that may do some of the things you're wanting.

2

I want to mention Element Inspector too. It makes finding the correct element much easier in DOM Inspector.

3

You can modify almost all of Firefox UI (toolbars, sidebars, tabs, context menus,...) but besides that I don't think such extensive list exists. Basically the question is that what can you do with CSS in the first place. You cannot make new functional stuff and cannot move stuff around with it (you can't for example move buttons relative to each other, except with some really hacky and restrictive ways).

2
rn10950•

There really isn't a list, but you can change pretty much any visual style in the browser if you know how to find an element with DOM Inspector.

1