Update: Since about Firefox build 45, search engines are stored in $HOME/.mozilla/firefox/profile_name/search.json.mozlz4. search.json is not used anymore.
You can install the Google verbatim search from here: http://mycroftproject.com/search-engines.html?name=google+verbatim by clicking
1. Major Engines/Google (No Suggest / No Instant/ Verbatim) 🌐 (google.com) by Anon [Review]

Firefox/Windows

Open the file C:\Users\<USERNAME>\AppData\Roaming\Mozilla\Firefox\Profiles\<YOUR_PROFILE>\search.json in an text editor.

The contents of the file will be on one line.

Look for “resultDomain”:”google.com” and edit the params section to look like this:

"params":
[
{ "name":"q", "value":"{searchTerms}" },
{ "name":"num", "value":"20" },
{ "name":"hl", "value":"en" },
{ "name":"tbs", "value":"li:1" },
{ "name":"source", "value":"lnt" },
{ "name":"sa", "value":"X" },
{ "name":"gws_rd", "value":"ssl,cr" }
]

When you are ready, remove all newlines and save the file.

Restart your Firefox browser.

Firefox/Linux

In Linux you will find the search.json file in $HOME/.mozilla/firefox/nnnnnnnn.default/search.json.

The above mentioned params section by default is:

"params":
[
{"name":"client","value":"ubuntu"},
{"name":"channel","value":"fs"},
{"name":"q","value":"{searchTerms}"},
{"name":"ie","value":"utf-8"},
{"name":"oe","value":"utf-8"}
]

For Chrome, go to Settings/Manage search engines. Scroll to the bottom of the window and add a new search engine.

Give it a name “Google verbatim”, add a shortcut keyword “g-v” and enter the following content to the URL field:

{google:baseURL}search?q=%s&num=20&hl=en&tbs=li:1&source=lnt&sa=X&gws_rd=ssl,cr

As last step, click Make default.

P.S. To set Firefox to always use http://www.google.com instead of a localized Google site, load https://www.google.com/ncr once.

Advertisements