Google Chrome and Custom Search Engine

Hi folks,

sometimes after you update the Google Chrome, it changes the default search engine for omnibox to this one: Custom Search Engine. Your search page starts looking weird and loses a lot of functionality.

Once you try to change the Search Engine (type chrome://settings/searchEngines in empty tab and press Enter), you realize that it’s impossible (the message “This setting is enforced by your administrator” appears).

I don’t know why it happens, but here is the way how to get things back (for Linux users):

  1. close all the instances of Chrome.
  2. Locate the /etc/opt/chrome/policies/managed/chrome.json and make sure that it contains the settings related to Custom Search Engine.
  3. Edit it:
{
   "DefaultSearchProviderEnabled": true,
   "DefaultSearchProviderInstantURL": "{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}",
   "DefaultSearchProviderKeyword": "google.com",
   "DefaultSearchProviderName": "Google search",
   "DefaultSearchProviderSearchURL": "{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}",
   "DefaultSearchProviderSuggestURL": "{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}"
}

Now your default omnibox Search Engine is Google.com without any CSE. If you prefer another engine, like Yahoo, pick appropriate URL from Settings > Search > Manage Search Engines (or go to chrome://settings/searchEngines).

Windows users can find Chrome / Policies somewhere in the registry. If you were able to do it, please provide registry key in comments.

Advertisements

One thought on “Google Chrome and Custom Search Engine

  1. {google:baseURL}search?q=%s{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}{google:contextualSearchVersion}ie={inputEncoding}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s