Skip to content

Instantly share code, notes, and snippets.

@tomelam
Created July 14, 2012 07:12
Show Gist options
  • Save tomelam/3109810 to your computer and use it in GitHub Desktop.
Save tomelam/3109810 to your computer and use it in GitHub Desktop.
How to use your Google Custom Search Engine in Chrome's Omnibox

How to use your Google Custom Search Engine in Chrome's omnibox

  • If you don't know what Chrome's omnibox is, see Chrome support.

  • Go to www.google.com/cse and add a Custom Search Engine with all your favorite web sites for one topic of interest to you. Let's suppose the topic of interest is JavaScript.

  • Do a search on your Custom Search Engine and save the URL of the finished search.

  • In Google Chrome, go to 'Settings', then (under 'Search') 'Manage Search Engines...'.

  • Scroll down to the very bottom of the 'Search engines' dialog box.

  • In the last row of the search engines table, click on 'Add a new search engine'. Type a unique name for your Custom Search Engine. Other than that it must be unique in the search engines table, it can be anything. In our example we might use 'JavaScript Gurus'.

  • In the next field in the row type a unique keyword that you will remember to type when you want to search via the Custom Search Engine. In our example we might use 'js' for this.

  • In the next field in the row paste the URL you saved earlier, with the search term replaced with '%s' (without the quotation marks).

  • Click 'OK' at the lower right of the 'Search engines' dialog box.

  • Test your new in-Chrome custom search by clearing Chrome's omnibox and typing the keyword you used earlier ('js' in our example). At the right side of the omnibox you should see ghosted letters. For our example, it would say 'Press tab to search JavaScript Gurus'. Try it: press tab and type a query. For our example we might try 'classical inheritance'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment