9 tweaks for Firefox 3’s location bar
While Firefox 3’s location bar is perhaps my personal favorite new feature and the one I missed the most when I have to use Firefox 2 for some testing, there are a lot of people who find it weird, obtrusive and don’t like it including bookmarks and history among its results.
An option to restore its old behavior was available for a few weeks during Firefox 3 development but it was pulled basically because it would need a lot of testing and it was thought it was not worth it. The option may come back for Firefox 3.1.
In the meantime, for those who prefer the old way and those who want even more power, here are 9 easy tweaks you can try.
1. Make the autocomplete menu show only typed addresses and not visited or bookmarked
- Enter about:config in the location bar to access the advanced preferences. Accept the “This may void your warranty message”.
- Look for browser.urlbar.matchOnlyTyped and double click it to set it to TRUE.
2. To set the autocomplete menu to single line suggestions install the oldbar extension, developed by Seth Spitzer. Together with the previous tweak pretty much restores Firefox 2 behavior, except typed characters are searched in all the address instead of just the beginning.
3. Change the number of suggestions displayed in the autocomplete menu
- Enter about:config in the location bar to access the advanced preferences.
- Look for browser.urlbar.maxRichResults and set it to the number of results you want to get.
- Restart Firefox for the change to take effect.
4. Hide the star button if you prefer to use the Bookmarks menu or a keyboard shortcut (Ctrl + D)
- Open your userChrome.css file located in your profile folder.
- Add this line to the end of the file: #star-button {display: none !important;}
- Restart Firefox for the change to take effect.
5. Always show the Go button. By default it is only displayed when you are editing the current web address.
- Open your userChrome.css file located in your profile folder.
- Add this line to the end of the file: #go-button { visibility: visible !important; }
- Restart Firefox for the change to take effect.
6. If you enter firfox in the location bar and you try to correct it, the autocomplete menu won’t suggest anything because it only keeps working as you edit the last characters. Install the Edit Middle extension, developed by harikaried, to make it work with edits anywhere.
7. To auto select the first suggestion in the autocomplete menu, install the Enter Selects extension, developed by harikaried. You will need to logon to Mozilla Add-ons to install it as it’s still experimental.
8. Tweak the autocomplete menu title and addresses size and colors by adding these lines to your userChrome.css file. Check for the specific hexadecimal color code to use at WebMonkey.
.ac-comment {font-size: 100% !important; color: #444444 !important; }
.ac-comment[selected='true'] { color: #FFFFFF !important; }
.ac-url-text {font-size: 100% !important; color: #000077 !important; }
.ac-url-text[selected='true'] { color: #FFFFFF !important; }
9. To include Google and Amazon search results in the autocomplete menu install the Searchery extension, developed by Ian McKellar. You will need to logon to Mozilla Add-ons to install it as it’s still experimental.
10. Bonus tip courtesy of Frederick from the comments: To hide the web feed icon from the location bar, add this line to your userChrome.css file: #feed-button[feeds] { display: none !important; }
Happy tweaking!
Thanks Jens, Marius, and Marcelo for the suggestions and corrections which work better indeed. There were unwanted spaces and wrong quotes in the original post but have now been corrected.



Subscribe RSS
Subscribe email

June 19th, 2008 at 12:19 am
Percy, it seems that the Digg button is causing some erratic behavior in the Mozilla Links feed when viewed in Liferea causing it to both show up as code as well as obscuring the feed’s content. See: http://i32.tinypic.com/11a8u9u.png
[Reply]
Percy CabelloJune 19th, 2008 at 9:36 am
Thanks Thomas, I’ll look into it.
[Reply]
June 19th, 2008 at 3:13 am
I hide the star button, but I actually lovee that I can search bookmarks from the address bar.
[Reply]
jennyJuly 7th, 2008 at 5:06 pm
how do you hide the star button?
[Reply]
June 19th, 2008 at 4:31 am
Some great tips there. The go button is nice to have around all the time.
[Reply]
June 19th, 2008 at 5:16 am
browser.urlbar.matchOnlyTyped must be true, not false if you want it to work. ;)
[Reply]
Percy CabelloJune 19th, 2008 at 9:36 am
Thanks Nukeador, post fixed.
[Reply]
June 19th, 2008 at 8:38 am
The Go button, really? Thats why I have an [Enter] key: after typing I hit [Enter] to enter my web address. Why reach for the mouse??
Could you give us a suggestion on fixing the icons in Linux under KDE? They look horrible but probably fit in decently with Gnome. In my Debian Lenny with a fresh tarball-based install of FF3, its pretty fugly.
Thanks for the tips!
[Reply]
David NaylorJune 19th, 2008 at 11:36 am
The go button is useful when you have tried to load a page but nothing happened or you got an error, and you have already moved your right hand back to the mouse.
I know there’s the reload button but it nice to have the option further to the right as well.
[Reply]
SaraAugust 15th, 2008 at 7:07 pm
Hi, I not only have no “go bar” but when i type in a new address that I’ve not visited before, and then hit “enter” … nothing happens. It’s like my “enter” bar has no effect. Ever hear of this one? Between this development and being “lucky” enough to be selected for the horrendous new iGoogle experiment from hell, I am so frustrated I could cry.
If you are able to provide any ideas/fixes, please “dumb them down” for me - I’m no net noob, but I’m no expert either. I just want my web to work. Thanks in advance.
[Reply]
bunnyheroJune 21st, 2008 at 2:22 pm
also the ‘go’ button is handy if you want to ‘reload’ the page that’s already in the location bar, *without* resending the info (if it’s a form submission)
[Reply]
June 19th, 2008 at 10:45 am
The option to hide the star button does not work all that well it seems.
I added that line to my userChrome.css file and its width became zero. But it is still there.
I can even still click on it and use it by clicking at some spot where it used to be.
Is there any other way to do it? I tried this: #star-button { visibility: invisible !important; }
But that does not work at all.
Also, when including the lines to change size and color of the addresses and titles in the autocomplete menu, the text does not become white anymore on selected entries. Like intended by these lines i assume:
.ac-comment[selected=”true”] { color: #FFFFFF !important; }
.ac-url-text[selected=”true”] { color: #FFFFFF !important; }
Thus selected entries are likely to become very unreadable.
[Reply]
JensJune 19th, 2008 at 11:57 am
I think i found a better solution for removing the star button: #star-button { display: none !important; }
But there is still the other problem with the addresses and titles not becoming white when they are selected.
[Reply]
MarceloJune 19th, 2008 at 8:15 pm
Just change the quotes to the proper ones and remove the space among the exclamation mark and works as supossed! White text!;-)
[Reply]
Percy CabelloJune 19th, 2008 at 9:50 pm
You’re both right and I’ve updated the article. Thanks!
[Reply]
June 19th, 2008 at 12:08 pm
To hide the star button try:
#star-button {
display: none !important;
}
Also, unless you customized your chrome before, there is no userChrome.css under your profile folder. In the ‘chrome’ subfolder of your profile folder you should find a file called userChrome-example.css, copy this one to userChrome,css.
[Reply]
rackhamJune 22nd, 2008 at 12:50 pm
hiding the star is all fine and well, but how do I force it to show? (my current theme disables it)
[Reply]
June 19th, 2008 at 12:49 pm
Ok, I am having loads of fun with my first serious tweak campaign on a new browser, it’s kind of fun to set it up to JUST how I would like it. BUT how does one get the “star” to disappear from the url locator dropdown, and is there any way to increase the number of sites in the dropdown?
I had to get rid of the “awesome” beast it was just to much and I have serious privacy issues.
Thanx fellow ‘zillas
[Reply]
June 19th, 2008 at 3:29 pm
Does anyone know the way to do #7 on the list (auto-select first search result) without an extension (meaning an about:config tweak)? That’s how I had it set up in Firefox 2 but I can’t seem to find the tweak anymore.
[Reply]
June 19th, 2008 at 4:46 pm
We can ask for the old toolbar here:
https://bugzilla.mozilla.org/show_bug.cgi?id=407836
Just add a comment at the end of the page… maybe they’ll listen to our request!
[Reply]
June 19th, 2008 at 6:51 pm
It’s great to be able to get rid of the star button from the location bar — thanks!
Does anyone know how to get rid of the RSS button?
[Reply]
June 19th, 2008 at 7:53 pm
With trial and error, I answered my own question.
To remove the RSS icon from the location bar, add the following line to your userChrome.css:
#feed-button[feeds] { display: none !important; }
There were also some questions about the Go button above. I am in the “kill the Go button” camp. To do so, add this line to userChrome.css:
menu[label="Go"] { display: none !important; }
Why doesn’t anybody in Mozilla-land bothers to document any of this stuff?
[Reply]
June 20th, 2008 at 9:28 am
REPEAT REQUEST please:
BUT how does one get the “star” to disappear from the url locator dropdown, and is there any way to increase the number of sites in the dropdown?
ciao,
Wolfie
[Reply]
JensJune 22nd, 2008 at 8:19 am
I second this request.
[Reply]
EddieBearAugust 30th, 2008 at 6:48 pm
about:config
browser.urlbar.maxRichResults
(default = 12, change it to whatever you want; I use 20.)
Don’t know about the “star” query.
[Reply]
June 20th, 2008 at 9:56 am
I tried using the oldbar 1.2, but it won’t install - says it is not compatible with 3.0. I just want things I typed in the address bar to drop down..like 2.0.
[Reply]
June 20th, 2008 at 5:49 pm
“Searchery” addon has wrong address, it is not …/7126, but …/7615
[Reply]
June 26th, 2008 at 10:00 am
Okay, I don’t know if I’m just being silly, but I’m having an issue that I can’t find a solution to. These tweaks are great, especially browser.urlbar.matchOnlyTyped. However, if I have a website that I access via a desktop shortcut. It’s a shortcut to my payroll website, so it’s the first thing I access in the morning. With Firefox 2, if I wanted to access the website again, I could just start typing it in the address bar and it would appear in the dropdown menu, allowing me to click on it and access the website again. Now, if I have browser.urlbar.matchOnlyTyped set to “true,” the address for this particular website does NOT appear, even though I’ve already visited it. The only way I’ve been able to fix that issue is by setting browser.urlbar.matchOnlyTyped to “false,” then selecting the website from the dropdown menu in the address bar (it shows up when it’s set to “false”) then going back and setting browser.urlbar.matchOnlyTyped to “true” again. Only then will the URL show up in the address bar. This might not make sense, but it’s exactly what’s happening and is seriously irritating me. Sure, I could just add it as a bookmark or set it as my homepage, but I’m just curious as to why this happens and if there’s any actual solution beyond changing my habits. Any ideas?
[Reply]
DavidJune 26th, 2008 at 8:45 pm
I believe that would be because the first time you visit the site, you do not do so by typing it in the address bar. Remember, browser.urlbar.matchOnlyTyped “true” means only sites you’ve typed into the address bar appear in the dropdown menu. Once you set browser.urlbar.matchOnlyTyped to “false” and clicked the site in the dropdown menu, that counts as “typing” it into the address bar, so it appears there when you set browser.urlbar.matchOnlyTyped to “true” again. I think.
[Reply]
JenJune 27th, 2008 at 9:13 am
David, thanks for the response. That’s what I figured, but it was still a minor annoyance. After spending all morning yesterday trying to tweak Firefox 3 so that it would stop searching for things in the middle/end of URLs, I rolled back to Firefox 2. Hopefully there will be an option to completely disable the “awesome bar” and have the exact functionality of previous location bars in their next release.
[Reply]
June 29th, 2008 at 6:46 pm
I scanned thru these posts and seems the ‘awesomeness’ of the ‘awesome (ly sucky) bar’ is still upsetting folks. I changed browser.urlbar.maxRichResults to 0 and it effectively killed it for me.
[Reply]
July 3rd, 2008 at 11:48 am
They have ruined my entire Firefox experience. All I want if to type something like “nytimes” into the address bar and hit enter and have Firefox add http://www. and the appropriate .com or .net or whatever onto the ending and go for it.
All this new stuff sucks. It’s typical geek junk that turns off so many ordinary users from open-source or collective-designed software.
They had a good thing and they overcomplicated it.
I am just furious about this.
[Reply]
ChubbsJuly 8th, 2008 at 9:30 pm
THIS IS EXACTLY WHAT I WANT IT TO DO!
I dont want it taking me to search results when i hit enter. UGH how do we get this back in FF3?
[Reply]
TexSeptember 2nd, 2008 at 11:48 pm
In reply to Fred Mertz: I totally agree with him. Why is it someone has to “improve” a well working simple system to the point of absurdity.
“All this new stuff sucks. It’s typical geek junk that turns off so many ordinary users from open-source or collective-designed software.
They had a good thing and they overcomplicated it.
I am just furious about this.”
Me Too!
Please-please bring back the old system or at least give us the choice.
[Reply]
July 5th, 2008 at 10:14 am
I need help, it seems that FF3 still shows history in my location bar even though I’ve done tweak number 1
[Reply]
July 8th, 2008 at 1:40 am
fire fox will not me download any thing? what do I need to do? please melp me .
[Reply]
July 9th, 2008 at 12:23 pm
Check out my countless userstyles for the Awesome Bar and more here:
http://userstyles.org/users/7858
[Reply]
July 22nd, 2008 at 12:11 pm
In my XP setup, the address bar won’t remember ANYTHING I have typed in manually and the drop down menu just shows 2 links from the many in my bookmarks menu. This is completely screwed.
[Reply]
August 2nd, 2008 at 8:54 am
Finally! Thanks for this article. I have been looking everywhere for an off button for this “feature” but couldn’t find any. FF3 is great for the most part, but this new address bar drives me crazy. There are many reasons why you would not want to broadcast your bookmarks to whoever happens to stand next to you.
Although the feature may be useful in some situations it is also very much a privacy issue. It really should have an off switch that a normal user easily can manage, i.e. without digging into about:config etc.
[Reply]
August 13th, 2008 at 6:46 am
Sorry but the above tips to remove the crappy ff3 URL bar don’t work!! Why doesn’t Firefox release an official waty of doing this as I can see there are heaps of people that hate it. Seriously - who remembers sites based upon their title?? Duh….no one!
[Reply]
August 17th, 2008 at 4:00 pm
I honestly can’t understand how someone could ever like the new location bar autocomplete.
I sometimes get results which do not contain -any- of the typed characters while i know that the one i’m looking for is in there, somewhere.
Sometimes i can get it to work by first typing in ‘www.’
Sometimes it works, kindof, and does show the url i was looking for, but at the same times shows urls that again do not contain any characters i have typed. It shows those results -before- the one i was looking for so i still have to sif through the list (which has become realy weird with all the highlighting and bold stuff.)
For me it has become one of the downsides of using Mozilla….
[Reply]
August 18th, 2008 at 9:02 pm
Pls. help i want to delete completely all i have been typed in the address bar. I done the Tweaks #1 or making Shift+ Del on every address but when i restart Firefox, it does not change any affect. I guess I’m not doing the right thing.
[Reply]
DreadnoughtAugust 28th, 2008 at 4:35 pm
In reply, you want to do the 3rd tweak listed and set the number of results to 0 and it won’t drop down anything when you type it, so you don’t have to worry about anything dropping down for people to see.
[Reply]
August 27th, 2008 at 10:50 pm
Thank you so much! It was aggravating to see my bookmarks always popping up whenever I started typing a web address, and this solved my problem. Excellent article!
[Reply]
August 28th, 2008 at 9:23 am
As previously reported, tweak #1 does not work as advertised. For the programmers reference… I am using xp pro for an os. Despite installing the ‘oldbar’ and implementing tweak#1 I still get history items listed in the pull down. This is enough to end my days with firefox… too bad, it was good while it lasted. Maybe it will get fixed before I completely abandon mozilla :(
[Reply]
August 28th, 2008 at 2:37 pm
I revile the new features. They are utterly detestable. Repulsive. Ill-conceived and ill-executed. Dumbly defaulted. Worthy of Microsoft.
I set browser.urlbar.maxRichResults to 0 immediately. Repulsive thumb-twiddling punks with too much time on their hands, don’t give us “features” that downgrade a product.
Even thinking about the 10 minutes it took to find out how to fix the problem makes my blood boil. Those damn Moz Punks. The hell with ‘em.
[Reply]
August 28th, 2008 at 4:34 pm
Yeah, I didn’t like the address bar to drop down some of the more…sensitive….addresses and such, so, I tried the first one and that didn’t help, so I just set the number of results that it shows to 0 and it doesn’t do that drop down thing! Sweet, tons of help from mozillalinks.org
[Reply]
August 31st, 2008 at 1:34 am
Thank you!! I don’t need my porn searches displayed every time I use the location bar
Thank you
[Reply]
September 5th, 2008 at 11:18 pm
Thank you so much for this! I used the first 3 tweaks and now it’s exactly how I like it.
[Reply]
September 7th, 2008 at 1:23 pm
Omg, I love you! Thanks. I couldn’t find anyway to delete the urls I typed in.
[Reply]
September 9th, 2008 at 10:30 pm
Does anyone else have problems with the first weak, getting rid of the bookmarks appearing? I’ve tried the matchOnlyTyped thing and set it to true, but my bookmarks still show up. Help, please?
[Reply]
September 21st, 2008 at 2:48 pm
I wanted to try a couple of these FF3.0 tweaks. But after several minutes of searching, I was forced to the realization that I just don’t have a userChrome.css file anywhere on the hard drives of any of my 3 mach’s. All I could find were userChrome-example.css files.
Is this normal?
[Reply]
Percy CabelloSeptember 23rd, 2008 at 11:47 am
Yes it is normal. Just rename userChrome-example.css, add the code, save and restart Firefox to apply the changes.
[Reply]
October 9th, 2008 at 9:26 pm
You got searchery’s url wrong: it’s https://addons.mozilla.org/en-US/firefox/addon/7615
[Reply]
November 28th, 2008 at 12:14 am
Thanks for this. Glad I’m not the only one who thinks the not-so-AwesomeBar sucks.
[Reply]