Changing Your Default Search Engine in Firefox

Have you ever noticed that even if you change your search engine in the upper right search box, searches from the URL bar (using '?' or multiple words) still use Google? In older versions of Firefox, you had to mess with the keyword.URL preference to change this, but things are much easier now.

Go to about:config and search on browser.search.defaultenginename. This is the preference that controls your default search engine. Change it to the name of the engine you want to use and you've changed keyword search.

UPDATE: Bonus! This also changes the search engine used for about:home.

20 Responses to “Changing Your Default Search Engine in Firefox”

  1. Anonymous August 21, 2012 at 12:00 pm #

    Shouldn't the preferences for the search bar provide a setting for the default search engine, so that you don't need to use about:config?

    • Mike Kaply August 21, 2012 at 12:05 pm #

      Yes. And the bug to do that was opened in March of 2006 - https://bugzilla.mozilla.org/show_bug.cgi?id=331105

      There is work going on right now to try to solve the "too many places to set search preferences" problem.

    • Bill February 28, 2013 at 9:47 pm #

      You tell me there is no preference tab.

  2. Anonymous August 21, 2012 at 12:10 pm #

    Or, alternatively, if the experiment of searching with all search engines and showing the results in a tabbed-like manner becomes the norm, then the ordering of the search engines would determine the default: just move the search engine you want to the top.

    • Stephan Sokolow August 21, 2012 at 3:10 pm #

      I REALLY hope that "search all" would come with an off switch. I keep Google in my search engines list, but I only use them when DuckDuckGo comes up empty and I feel the search keywords are something I wouldn't mind being announced to the world.

      • Anonymous August 25, 2012 at 6:43 pm #

        "search all" won't send your search keywords to all search engines at once; it'll start with your default search engine, and only search another engine if you click the "tab" for that engine.

  3. Amr August 21, 2012 at 4:15 pm #

    Excellent. What about changing the search engine in the about:home page; box in the middle of the page?

  4. Mook August 21, 2012 at 10:55 pm #

    If you're an extension, this is definitely one of the cases where you want to make the change by shipping a default prefs file (or equivalently changing the default prefs branch from code), instead of the normal thing that writes into the user's prefs.js. The benefits are 1) if the user made a custom selection, that will stick; 2) your change will go away if the user uninstalls your extension. See the various discussion on the new addon policy - it's possible that not doing things this way can get your addon blocked in the future :(

  5. Mike Kaply August 22, 2012 at 8:19 am #

    > If you're an extension, this is definitely one of the cases where you want to make the change by shipping a default prefs file (or equivalently changing the default prefs branch from code), instead of the normal thing that writes into the user's prefs.js.

    The problem with doing it this way is that the user can't optout of the behavior.

    This is the catch-22 of these policies. They want setting to go away when you uninstall, but they want the user to be able to optout.

    I've chosen to go the route of setting everything on startup and unsetting on shutdown.

  6. Robert Kaiser August 22, 2012 at 10:29 am #

    For this to work, make sure that keyword.URL is at its default setting of being empty, though. If it isn't, the default engine won't be used by that custom setting will. In that case, right-click on the entry and reset it.

    • Mike Kaply August 22, 2012 at 10:35 am #

      Good point. Some people might have an add-on that modifies it or a migrated setting.

      If right clicking and selectting reset doesn't work, you can just set it to blank.

  7. Nem September 9, 2012 at 11:42 am #

    Excellent. What about changing the search engine in the about:home page; box in the middle of the page?

    • Mike Kaply September 10, 2012 at 9:45 pm #

      Changing the default engine in this way also changes the engine used for about:home.

  8. Nicholas Micalone November 26, 2012 at 2:34 am #

    I am a newbie. I tried inputting your instructions into my Windows XP System, but I am not a programer and couldn't change the default setting. If you have the time and patience, could you give me step-by-step how-to? I would like to make Duckduckgo mt default search engine. Thanx. n.

    • Mike Kaply January 20, 2013 at 3:17 pm #

      Type about:config in the URL bar.
      Then type defaultEngine in the filter area.
      Double click on the preference named: browser.search.defaultenginename
      Then change the name to the EXACT name of the search engine you want to use (DuckDuckGo)
      Obviously you have to have installed duckduckgo

  9. bobc2 February 17, 2013 at 9:43 am #

    My default is bing. I search in bing and the search is answered in google. If I search in bing, I want my answer in bing. How do I fix the search so it searches in bing and returns the answer in bing?

    • Mike Kaply March 9, 2013 at 10:07 pm #

      Where exactly are you searching in Firefox that you see Google? In the URL bar?

  10. Chris Adams March 17, 2013 at 12:18 pm #

    I did as you suggested, but Zonealarm still kept coming up. I eventually found that I needed to edit 'Keyword.URL' (in about:config) and change 'search.Zonealarm...' to 'www.Google....' Problem solved. At least you got me pointed in the right direction. Thanks.

Leave a Reply:

Gravatar Image