This is the Problem
As the whole internet knows, Firefox’s Release Candidate was released the other day. I had been using nightly builts from a PPA before and everything was working together just fine, so I didn’t expect problems.
Well there was a new version of vimperator out as well which changed a few names of settings, so that confused me a little. However, these obstacles where easily overcome with #vimperator on freenode.
Actually, THIS is the Problem
This new firefox adds a button to the tab bar when you hide the menu bar; I hide the menu bar because I don’t need it — I have vimperator. Also there are scrollbuttons in the tab bar now, which do not help with my usual web work flow. So I wanted to hide these; my tab bar should contain only tabs.
I quickly installed chromebug, restarted firefox and, by inspecting the chrome, found out the selectors to use for styling with css. (I have accepted the idea you need firebug to make websites do what I want, but I was surprised to learn I have to use it to make firefox do what I want as well…)
When at first you don’t succeed…
I added the style definitions to userChrome.css, restarted firefox and lo and behold — those bloody buttons where still there, taking up screen estate!
It seemed firefox would not parse my userChrome.css file. I chose to not investigate, because there is another way for me to get styles applied to the chrome.
…dust yourself off and use vimperator to try again
vimperator has a command :style which you can use to inject user styles into web pages or chrome.
My .vimperatorrc looks like this now:
set ds=duck
set gui=none,tabs,addons
style "chrome://*" #appmenu-toolbar-button, .scrollbutton-up,
.scrollbutton-down { display:none; }
Line 1 sets up my default search engine, which is duckduckgo, short handed to duck. The second line shows only tab bar and add-on bar. Finally the third line hides those pesky buttons. Note that I split the last line to make it easier to read.
I am sure you could do this in userChrome.css as well, but I didn’t want to wrestle with firefox any more.
Spread the love
I like this new firefox because sites with lot of javascript seem more responsive. I like vimperator because it feels so natural to me, I am totally hooked. I really like duckduckgo, they have things that seem to improve my “search experience” (as corny as that my sound).