Extreme browser customization
Note: this entry has moved.
I've already said why I believe FireFox is the best browser ever. Let me show you another amazing feature of this browser.FireFox can be completely customized through CSS stylesheets. You know, the browser itself it built with XML (the I-came-first-than-XAML XML User Interface Language and Extensible Binding Language -think IE behaviors), javascript and CSS. What's more, all those XML, JS and CSS files are right there sitting in your profile folder waiting for you to play with them.
There are two main files that customize the browsing experience:
userChrome.css
: modifies the browser's appearance.userContent.css
: modifies the appearance of all rendered pages.
chrome
subfolder. Sample files for them are provided in the US\chrome
subfolder inside your profile folder. You can rename and copy them to your chrome
folder. You can create a new FireFox profile with the store location you want by using starting it with firefox.exe /p
.
I my case, for example, I find the default search box at the top right of the browser too small. I usually perform searches like: xml performance site:weblogs.asp.net
. That doesn't fit the textbox. What's more, as I'm using 1152x864 resolution, I've a huge wasted address bar. In the
userChrome.css
stylesheet file, the following style declaration suffices to make the search box wider (see it in this screenshot):
But it doesn't end in browser customization. You can also affect the way ALL the pages you browse are displayed. That's the userContent.css
's role. For example, I find the default font size for <pre> and <code> tags too small in comparison with IE. Easy enough to fix. I just edited the userContent.css
stylesheet and added:
I had a look at both sites' HTML source, located the elements I don't want to see, and added the following styles:
And if you have the disgrace of having to work too much with GDN, the following will get rid of the amazingly useless header and search box and the advertising at the right: