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 - keyword.url - use firefox address bar to search - firefox address bar search - change firefox url search - firefox keyword.url google - firefox combine search address bar - how to delete url from address bar firefox 3.5 - modify firefox adress default - change search engine firefox address bar to google - firefox address bar google lucky - keyword.url firefox - opendns firefox search browse by name - firefox goes to google w hen typing keyword in address - firefox url search - firefox search address bar - how to run search address firefox - disable firefox first result - firefox modify location - firefox search results change - about:config keyword.url - awesome bar i'm feeling lucky default - change search url on google search firefox - change about:config firefox address bar search - change url bar search back to google feeling lucky - change keywords in firefox - feeling lucky default url firefox - firefox url match results - firefox move location bar bottom - firefox auto search address bar - firefox 3.5 address bar search - firefox address bar yahoo - firefox address bar search yahoo - firefox url field google - firefox address bar invalid - firefox default search url - firefox add in how to modify - firefox address bar search google feeling lucky - firefox search with address bar - google keyword.url firefox about:config - google search query url firefox - google url default firefox - keyword.url search firefox change from im feeling lucky - make google default search engine from URL bar 3.5 - remove i'm feeling lucky firefox - set keywords to go to first site in firefox - type in address box firefox - unable to change the keyword.url in firefox - about:config - address bar modify google lucky -