How do I revert to the default Google search engine in Chrome?
Most sites have a simple querystring search, like http://mysite/search/?query=%s
, but Google has some weird query string, and I'm not sure how to restore it.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityHow do I revert to the default Google search engine in Chrome?
Most sites have a simple querystring search, like http://mysite/search/?query=%s
, but Google has some weird query string, and I'm not sure how to restore it.
You can goto
Settings > Manage Search Enginesin Google Chrome and you can add Google Search Engine again. Here's how:
Other Search Enginesand below that text boxes for adding a new search engine.
google.comand paste the below code in the URL box:
{google:baseURL}search?q=%s&{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}ie={inputEncoding}
Hope this helps.
{google:baseURL}search?q=%s&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:bookmarkBarPinned}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}{google:omniboxStartMarginParameter}{google:contextualSearchVersion}ie={inputEncoding}
Feb 3, 2016 at 15:17
Goto Chrome → Settings and click on the Manage Search Engines
button.
Add new search engine
Google
google.com
{google:baseURL}search?q=%s&{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}ie={inputEncoding}
This is what I have set in Chrome.
(My answer from webapps.SA)
If you just want to permanently use google.com (or any other fixed URL) as the search engine, above two methods probably is not what you are looking for. /ncr
and adding another search engine both breaks the default realtime search functionality. Try this,
go to User Data folder
users\username\appdata\local\google\chromium\User Data
(or similar - please edit if this is wrong)~/.config/chromium/Default
open the file named LocalState
(windows) or Preferences
in vim/notepad, and change,
last_known_google_url
andlast_prompted_google_url
to whatever the baseURL you want. Ex. "https://www.google.com/"
Save.
For more info look at this old bug report.
last_known_google_url
in ~/Library/Application Support/Google/Chrome/Default/Preferences
The problem with manually adding/editing the search URL is that it won't restore the built-in behavior fully, specifically the dynamic autocomplete suggestions based on Google search because it's an internal field present in the prepopulated search engines. The only officially documented method is to reset the browser settings, but it'll nuke most of your profile data.
Here's how I've restored just the built-in Google
engine and kept the profile intact:
Exit Chrome fully via its menu -> Exit, so that no hidden processes or tray icons remain.
Copy/zip the contents of that directory somewhere else so you have a backup just in case.
Open Secure Preferences
file inside the profile directory in a text editor.
Delete the text that starts with "default_search_provider_data":{
and ends with },
Some editors conveniently highlight the closing bracket when the cursor is at the opening {
.
Note the comma should be also deleted.
Make sure you don't reformat the file because its parts are protected by a "hashsum", meaning that changing even one byte there would prompt Chrome to reset all settings. You can open the file in an online JSON beautifier beforehand to have a visual confirmation that you're deleting the correct part.
Save the file and start Chrome, go to chrome://settings
and verify the result.
Yet another nondestructive solution that doesn't involve kinda hackish editing might be to manually add a local policy for DefaultSearchProviderSuggestURL, and other related keys like DefaultSearchProviderImageURL, DefaultSearchProviderSearchURL.