Wednesday, May 4, 2011

Firefox: Tabs next to the url bar, IE style

Last week, I was thinking how much valuable space is wasted, by having such a wide location bar in my browser. So I googled about it, and moved my tabs next to the location bar, just like Internet Explorer. Here is how I did it.

  • Right click on the blue space next to the tabs and select "Customize...". 
  • Drag the location bar next to your tabs. (I prefer to have it it on the left.)
  • Drag all the items you need (like the Previous-next buttons) next to the locatiob bar. 
  • Click "Done".
  • Right click again and deselect "Navigation Toolbar".

  • Now you may need to resize the location bar. To do so hold WindowsKey and press R. Write in %appdata%\Mozilla\Firefox\Profiles and press Enter.
  • Open your profile folder(xxxx.default). 
  • Create a new folder and name it "chrome". Inside the new folder, create a text file and name it "userChrome.css".
  • Inside the "userChrome.css" file write:
    #urlbar, #urlbar-container {
    min-width: 350px !important;
    max-width: 350px !important; }
  • Change 350 if you want a bigger or a smaller url bar. 
  • Save and restart firefox.



Here is a batch file to do the job for you: (run and restart firefox)
cd %appdata%\Mozilla\Firefox\Profiles
REM run "dir" command and save the outputd profile forder in %profile%
FOR /F "tokens=1 delims=" %%A in ('dir /b') do SET profile=%%A
cd %profile%
if not exist chrome mkdir chrome
cd chrome
echo #urlbar, #urlbar-container {  >> userChrome.css
echo min-width: 350px !important;  >> userChrome.css
echo max-width: 350px !important;} >> userChrome.css

FXChrome theme works nicely with the above trick.

No comments:

Post a Comment