Aaron James Young - Salem, Oregon

Website Design and Development

Chrome-like Floating Statusbar for Firefox

Posted on Aug 9 2010 | Posted in Web/Tech | 14 Comments

Yeah, I’m a little crazy about screen space. I don’t like the statusbar on the bottom of my firefox window. The only thing that I really use it for is to check the address of links that I’m hovering over.

I like the way Chrome and other browsers do this – a little box appears with the link address. So I decided to do this to Firefox. This isn’t an extension, just a little userContent.css hack and some icons. The screenshot above shows what it looks like for me in Firefox when I hover over a link.

Download Zip File – August 19, 2010

  • August 19, 2010 – fixed variable margin/padding bug
  • August 9, 2010 – initial upload

To summarize, the zip file above contains a few icons and a userContent.css file. If you’ve modified userContent.css before, you know how this works. Basically, it applies some styles to certain elements on ALL websites that you browse.

Instructions:

Download and extract the zip file. You’ll find a “README” file that contains these instructions, a “userContent.css” file, and a folder labeled “floating-statusbar-icons”.

Find your Firefox profile directory. In Linux, this is at ~/.mozilla/firefox/<YOUR PROFILE DIRECTORY>. Inside your profile directory is a folder called “chrome”.

The “userContent.css” file and the “floating-statusbar-icons” folder need to be moved into the “chrome” folder in your profile directory. (Note, if you’ve customized your userContent.css before, you need to just copy-paste the code from my provided css file into yours).

Restart Firefox. Go to “View” -> uncheck “Status Bar”. This isn’t necessary, but isn’t the whole point to get rid of your statusbar?

Oh, a cool bonus:

Hover over an image link and you get:

Little icons will indicate the type of file that’s being linked to. There’s also a lock for https links, a “new tab” icon for links that will open in a new tab/window, and an envelope icon for mailto: links. There are several filetypes that will show icons, so have fun experimenting.

Note that this isn’t perfect due to some limitations to CSS and some laziness on my part. This won’t completely replace your statusbar if you use it for MORE than what’s described above (showing a link address when you hover over the link). It won’t show your weather and it won’t show icons for your Firefox addons.

Credit:

I’m using icons from the Silk Icon set (1.3) by Mark James: http://www.famfamfam.com/lab/icons/silk/

Want more?

Got something to add? Let me know and I’ll update the zip file. Thanks!

Aaron James Young is a Salem, Oregon Web Designer and crazy runner / cyclist. He is husband to Evelyn and father to Hanna.

Did you enjoy this post? If so, please comment or check out the whole category of related posts: Web/Tech

Comments

Oz

August 19th, 2010 at 9:11 am

Hey

there is an issue, on this site put the cursor over “Home, Web Portofolio….” and you will see the issue the text is not centered up and down, same issue on arstechnica and neowin. can be fixed?

aaronyoung

August 19th, 2010 at 5:33 pm

Yeah, that’s an issue with the css styling on the elements (margin & padding specifically in this case). I think that I’ll mess with the CSS a little more but I’m guessing that it can’t ever be perfect. The same problem happens in a kind of hilarious way on http://forrstappcontest.com/ – mouse over the tabs “Home”, “Teams”, “Matchmaker”, “Rules”.

If I can fix it up better, I’ll post an updated version on the download link (and change the date accordingly). Thanks.

aaronyoung

August 19th, 2010 at 5:50 pm

Actually, the margin/padding thing turned out to be pretty easy to fix. Updated zip is up at the download link now.

Oz

August 20th, 2010 at 9:31 am

Thanks

I’m testing it now.

Skrell

September 11th, 2010 at 9:30 am

Hey i love this style as it means i can get rid of a bulky extension to accomplish the same thing! I have 2 issues tho:
1. THe only icon that i ever see is a “thumbs up” hand when i hover over anything. (i am using winxp sp3 FF 3.6.9)
2. Can you position the info box closer to where the mouse hovers instead of the bottom of the screen?

Skrell

September 11th, 2010 at 9:47 am

i take back comment#1 above. They do work

awesome

September 14th, 2010 at 10:23 am

Wow, this is so awesome, but I got a problem.
I want to make a gradient background with this [«background: -moz-linear-gradient(top, #ffffff, #e4e5f0)» instead of just «background: #181818»], but then I don’t see any icons. So I’m in situation where I need to choose – gradient or icons? Maybe you can solve so I can get gradient + icons? I’d really appreciate it.

aaronyoung

September 14th, 2010 at 12:58 pm

Hi awesome,
As you know, “background” is the CSS shorthand for “background-image”, “background-color”, etc…A gradient is interpreted as “background-image” – that is, without shorthand you write: “background-image: -moz-linear-gradient….”.

Firefox supports CSS3 multiple background images. You separate your multiple images with commas: “background: url(image1.png) top left no-repeat, url(image2.png) top right no-repeat;”

So you would probably have to modify each of the “icon” styles (not just the main style) and set multiple background images (the icon, and a gradient) on each style. It would probably be pretty easy with a search-and-replace. Good luck!

aaronyoung

September 14th, 2010 at 1:00 pm

@Skrell – Haha, the “thumbs up” is just for links containing the text “aaronjamesyoung” ;)

positioning – I’d have to think on that a little. It could probably be positioned as a tooltip but a complication is that we have to either override or respect the original styles on the website. So if the original website styles their links with “position:absolute” vs. “position:relative” (or no positioning declaration at all) it might be harder to reliably place the tooltip.

awesome

September 21st, 2010 at 12:48 am

Thanks for your reply, it was very helpful.
Yet again, one more question. I’m new at this stuff, I don’t know much, so here I go.
What should I change to show the full link? (example – “http://edition.cnn.com/EUROPE/” instead of just “/EUROPE/”)

aaronyoung

September 21st, 2010 at 8:27 am

awesome – I’m just using CSS for this and there are some limitations – It’ll only display the href=”…” attribute of the HTML – so for a link like {a href=”/EUROPE/”}, the /EUROPE/ part is all that will show up. CSS isn’t smart enough to figure out the rest of the link.

I’m sure it could be scripted together using javascript, but then it would need to be packaged together as an extension or maybe a Greasemonkey Userscript.

Aaron Fournier

October 12th, 2010 at 10:09 am

Thank you so much for this! I tested removing my status bar, but I was annoyed at not being able to see where certain links went to.

vokins

April 3rd, 2011 at 5:20 am

hi, i use this css on my opera,i think it’s very good.and i have a question needs your help,how can i use the opera skin instead of the png,or i use base64 decode the png in the css.

this is a example in the opera:
http://usercss.ru/styles/links-with-icons/

thank you very much and best wishes

Aaron James Young

April 3rd, 2011 at 8:15 am

vokins – sorry, I don’t use Opera and I’m not sure exactly what you’re asking.

Have your say!

From my portfolio...

Selection_008 full Hundini Screenshot Sunset XC Screenshot

Recent Blog Posts

Latest Twitter Updates

Want to tweet with me? Follow me on Twitter!

    Latest Delicious Bookmarks

    Here's the stuff I found interesting recently. Follow me on Delicious!