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.

79 Comments

  1. Thomas June 19, 2008 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

    • Percy Cabello June 19, 2008 9:36 am 

      Thanks Thomas, I’ll look into it.

  2. xpgeek June 19, 2008 3:13 am 

    I hide the star button, but I actually lovee that I can search bookmarks from the address bar.

    • jenny July 7, 2008 5:06 pm 

      how do you hide the star button?

  3. David Naylor June 19, 2008 4:31 am 

    Some great tips there. The go button is nice to have around all the time.

  4. Nukeador June 19, 2008 5:16 am 

    browser.urlbar.matchOnlyTyped must be true, not false if you want it to work. ;)

    • Percy Cabello June 19, 2008 9:36 am 

      Thanks Nukeador, post fixed.

  5. lefty.crupps June 19, 2008 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!

    • David Naylor June 19, 2008 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.

      • Sara August 15, 2008 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.

    • bunnyhero June 21, 2008 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)

  6. Jens June 19, 2008 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.

    • Jens June 19, 2008 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.

    • Marcelo June 19, 2008 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!;-)

      • Percy Cabello June 19, 2008 9:50 pm 

        You’re both right and I’ve updated the article. Thanks!

  7. Marius Scurtescu June 19, 2008 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.

    • rackham June 22, 2008 12:50 pm 

      hiding the star is all fine and well, but how do I force it to show? (my current theme disables it)

  8. wolfie June 19, 2008 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

  9. Max June 19, 2008 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.

  10. Frederick June 19, 2008 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?

  11. Frederick June 19, 2008 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?

  12. Software: Más trucos para modificar Firefox 3 June 20, 2008 2:14 am 

    [...] Lo más molesto es que tanto el nombre de la página como la URL en la lista, aparecen en negro, por tanto decidí buscar una forma de arreglar este problema y encontré 9 tweaks for Firefox 3’s location bar. [...]

  13. wolfie June 20, 2008 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

    • Jens June 22, 2008 8:19 am 

      I second this request.

    • EddieBear August 30, 2008 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.

  14. Travis June 20, 2008 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.

  15. PeePay June 20, 2008 5:49 pm 

    “Searchery” addon has wrong address, it is not …/7126, but …/7615

  16. foxiewire.com June 20, 2008 8:14 pm 

    9 tweaks for Firefox 3’s location bar – Mozilla Links…

    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 bookm…

  17. 9 Firefox 3 Location Bar Tweaks June 21, 2008 3:43 pm 

    [...] Bar TweaksJune 21, 2008Time for some tips and tricks. Percy Cabello wrote a great article on how you can tweak your location bar. For example: make autocomplete menu show only typed addresses and not visited or bookmarked, how [...]

  18. Jen June 26, 2008 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?

    • David June 26, 2008 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.

      • Jen June 27, 2008 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.

  19. Firefox 3.0 Upgraded at blog.watashii.com June 29, 2008 5:13 am 

    [...] it, since it acts like a search box of your favorites/rss feeds rather than the most typed URL.  See here for tweaks of this. Or revert back to FF2.0’s ‘Old Bar’ with this [...]

  20. mike June 29, 2008 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.

  21. » Certificat du Download Day Firefox 3 July 3, 2008 6:45 am 

    [...] Je constate que depuis que j’utilise cette version, FF est bcp plus rapide , même dans la gestion des video (QT,..) et les animations Flash. Il comsomme pas mal au départ mais avec pres de 10 onglets ouverts en permanence et une quinzaines d’extensions (actives biensur !) il se stabilise aux environs de 100-130Mo. Perso je dis beau boulot même si cette nouvelle barre d’adresse avec son panneau de resultats me saoule (ouf ca se desactive par ici). [...]

  22. Fred Mertz July 3, 2008 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 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.

    • Chubbs July 8, 2008 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?

    • Tex September 2, 2008 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.

  23. Hsew July 5, 2008 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

  24. wayne July 8, 2008 1:40 am 

    fire fox will not me download any thing? what do I need to do? please melp me .

  25. Paul July 22, 2008 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.

  26. Eric August 2, 2008 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.

  27. Andy August 13, 2008 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!

  28. Do you like the awesome bar? - Mozilla Links August 13, 2008 3:40 pm 

    [...] its look or takes too much space. Or because they found confusing the change fo behavior. There are some workarounds available and Firefox 3.1 will provide more customization, but still this could be not [...]

  29. red August 17, 2008 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….

    • p1nk g33k January 24, 2009 12:16 am 

      I said the same thing when I first upgraded my Firefox. Now, I love it. The autocomplete feature has helped me find pages that I never would have found if I had to search through all of my history manually.

  30. Firefox 3.0 and the awesome bar??? - ABXZone Computer Forums August 18, 2008 8:37 am 

    [...] from 12 to 0. Restart Firefox to show the changes. Hi Baehemoth, I found a solution here too! 9 tweaks for Firefox 3’s location bar – Mozilla Links Thanks NBK __________________ Processor: Intel Core 2 Duo E8400 3.0GHz****RAM: G.Skill [...]

  31. eVaLyN August 18, 2008 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.

    • Dreadnought August 28, 2008 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.

  32. Austin August 27, 2008 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!

  33. bob August 28, 2008 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 :(

  34. Hexagonal August 28, 2008 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.

  35. Dreadnought August 28, 2008 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

  36. Thor August 31, 2008 1:34 am 

    Thank you!! I don’t need my porn searches displayed every time I use the location bar

    Thank you

  37. Maryanne September 5, 2008 11:18 pm 

    Thank you so much for this! I used the first 3 tweaks and now it’s exactly how I like it.

  38. Janis September 7, 2008 1:23 pm 

    Omg, I love you! Thanks. I couldn’t find anyway to delete the urls I typed in.

  39. Temp September 9, 2008 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?

  40. Glenn Evans September 21, 2008 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?

    • Percy Cabello September 23, 2008 11:47 am 

      Yes it is normal. Just rename userChrome-example.css, add the code, save and restart Firefox to apply the changes.

Comments are closed.