2
Firefox 6.0 introduced URL formatting in the address bar, i.e. the domain.tld is black, while protocols, subdomains, and paths are grey. The related about:config entry to enable/disable this feature is browser.urlbar.formatting.enabled. I would like to customize these elements. For example, instead of different colors, make the domain boldface.
My research has only led me to discussions on how to disable this feature, as this was a controversial change in interface. Am I the first person to think of this?
I've inspected the DOM for related CSS selectors, but did not find any attributes specific to the domain or other parts. I also looked through the various XML files (e.g. chrome://browser/content/urlbarBindings.xml#urlbar), but I do not know JavaScript.
I've pasted the related XML/JavaScript code here: http://pastie.org/3122111
Note that using
color: red !importantdoes change the color of the URL bar text, but you still can't apply a different style to the domain portion and the rest of it. Bummer. – RomanSt – 2016-07-15T09:01:21.640Excellent, thorough answer. Thank you. I was worried that it would be hardcoded. Since there is nothing I can do aside from rebuilding the source code myself, I will wishfully submit the idea.
– iglvzx – 2012-01-04T22:43:01.690