Hack to Modify Firefox 3 Address Bar to Return Search Results When Query or Invalid URL Is Entered

Most modern web browser such as Firefox, Google Chrome, Safari and Internet Explorer (IE) is able to handle invalid URL or link location that user to type into address bar or location bar. The most typical option is automatically treat input as a query string or term, and search for it using default search engine.

Firefox takes “auto-correction” feature in address location bar a step further by automatically redirect user to a web page that it assumes user is looking for, much like Google’s “I am feeling lucky” feature. In fact, Firefox is using Google search engine to find possibly related or matching website and then direct Firefox to open the lucky first link returned by the Google.

For user who prefer to see a list of matching websites or search results instead of auto redirect to a web page when entering keywords in the Firefox’s link location bar, it’s possible to change the Firefox behavior by modifying its configuration using steps below.

  1. Run Firefox.
  2. Enter about:config into the address bar.
  3. Locate keyword.url or type keyword.url into “Filter” text box to search for it.
  4. Double click on the line of “keyword.url”.
  5. By default, the string value for “keyword.url” is “about:neterror?e=query&u=”. To display search results instead, replace the string with one of the following search statements, depending on the search engine you prefer:

    Google: http://www.google.com/search?q=
    Google Search (I’m Feeling Lucky which Automatically Goes To First Result): http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=
    Yahoo!: http://search.yahoo.com/search?p=
    Windows Live Search: http://search.live.com/results.aspx?q=
    Wikipedia: http://en.wikipedia.org/wiki/Special:Search?fulltext=Search&search=
    Wikipedia (GO option Similar to Google I’m Feeling Lucky): http://en.wikipedia.org/wiki/Special:Search?go=Go&search=
    Technorati: http://www.technorati.com/search/

    Change Firefox Add Bar Search URL

  6. Click OK when done.

To revert to existing behavior where best matching site will be shown immediately on any typo error or keywords and terms been entered, just set the “keyword.url” value back to “about:neterror?e=query&u=” (without quotes).


5 Responses to “Hack to Modify Firefox 3 Address Bar to Return Search Results When Query or Invalid URL Is Entered”

  1. Walter
    October 14th, 2009 13:52
    5

    I have firefox 3.0, dual boot Xubuntu/Ubuntu 8.04LTS-AMD64, Dual Core AMD processor, 2 gigs of ddr2, 2X 1GB nVidia (SLi), and Antec 850 power supply.

    Screwed up my browser trying to fix a Mediacom Searchassist issue. (note: Problem solved by going to bottom of searchassist mediacom page and clicking opt out. Duh.)

    However, prior to finding that link I searched http://www.scroogle.org/cgi-bin/scraper.htm for a hack to get me going and found your page and later another. You were correct about all of your data with respect to my cooler, except one. As a fellow techy, I felt it only fair to inform you of the issue so you could possible update your fix to include this info. It very well may be that my solution is distro dependent, but somehow I doubt it.

    You instructed thus:

    “By default, the string value for “keyword.url” is “about:neterror?e=query&u=”. To display search results instead, replace the string with one of the following search statements, depending on the search engine you prefer”

    I attempted to make my browser go back to the “I’m feeling lucky” solution from google that I was used to. However, I never read the original string. I attempted to put in the string from your post, that was as you claimed, the default and I got nothing. However this string:

    http://www.google.co.in/search?btnI=I%27m+Feeling+Lucky&q=

    which put me back to normal.

    Sorry for the long post. I like to be detailed and specific.

    Thanx for your help

  2. LukeCro
    September 6th, 2009 17:12
    4

    Thank you! Ever since I switched to Firefox 3.5 I’ve been having all sorts of problems with Firefox — including the “Awesome Bar” Location Bar no longer working as a Google-search field… Following your directions on replacing about:neterror?e=query&u= with http://www.google.com/search?q= did the trick . . . Now the Location Bar still has all of it’s Awesome functionality, plus I can use it run Google searches like I was used to. Perfect! Now if only Firefox 3.5 stopped intermittently slowing down and freezing I might finally start to like it even more than the far more stable Firefox 3.1 ;)

  3. Mateus
    August 10th, 2009 00:32
    3

    O meu ja troquei isso tudo , mas ele continua pesquisando pelo Browser pelo Yahoo , sabe o que pode ser ?
    Abraços Obrigado

  4. vinpao
    July 17th, 2009 23:24
    2

    Changing the keyword.URL field in Firefox might not work.
    Firefox 3.5 was still defaulting to Yahoo as the search engine for the address bar.
    I run REGEDIT and searched for “yahoo”: I found 4 entries like WS_FF_AB and WS_IE_AB all set to some yahoo pages.
    I deleted them and now the default search depends on the keyword.URL field in about:config

    also, check out
    http://kb.mozillazine.org/Location_Bar_search
    for different settings of the keyword.URL value.

  5. Maggy
    July 16th, 2009 23:27
    1

    Thanks, OpenDNS changed this option without asking me and I couldn’t find a way back to default behavior.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

firefox search from address bar - firefox address bar search - search from address bar firefox - keyword.url - firefox search address bar - modify firefox - firefox address bar google search - firefox keyword.url - delete google search from address bar - google search from address bar firefox - address bar search firefox - keyword.url firefox 3.5 - keyword.url firefox - google search firefox address bar - firefox url search - im feeling lucky address bar - keyword.url google default - use google search for address bar firefox about:config - firefox keyword.url google - add google search to firefox address bar - disable firefox are lucky location bar search - entered url goes back to google search page - firefox no longer searches in url - fire fox address bar - firefox i'm feeling lucky address bar 3.5 - how to change awesome bar search site - direct search with firefox address bar - firefox address bar search google feeling lucky - firefox url address bar custom - firefox search in address bar - modify search engine in address bar - search from the address bar firefox - firefox search from address bar .com - firefox search return - search from address bar in firef0x - combine the firefox url bar and search box - firefox combined search address bar - firefox AND "search in address bar" - google search from firefox address bar - google search in firefox address bar - address bar change to google - external search query hack - firefox goes to web search without .com - firefox search from url - opendns changed firefox search behavior - Address Bar Search Behavior In Firefox - change firefox address bar search engine - modify behavior google search firefox location bar - set keyword url feeling lucky - url in address bar firefox gets redirected -