Google Groups Search is an Omnibox browser extension that allows you to search Google Groups from the browser. To use, type ‘ggs’ & space, and a query term into the Omnibox. The search result for your query will open up in a new tab.
manifest.json
{ "name" : "Groups Search", "short_name": "ggs Search", "description" : "To use, type 'ggs' & space, and a query term into the Omnibox. timothytocci.com", "version" : "0.1", "background" : { "scripts" : ["background.js"] }, "omnibox" : { "keyword" : "ggs" }, "icons" : { "16" : "ggs_16.png", "32" : "ggs_32.png", "48" : "ggs_48.png", "128" : "ggs_128.png" }, "manifest_version" : 2 }
background.js
chrome.omnibox.onInputEntered.addListener(function (text) { var createProperties = { url : "https://groups.google.com/forum/#!search/" + encodeURIComponent(text) }; chrome.tabs.create(createProperties); }); chrome.omnibox.onInputStarted .addListener(function () { var suggestion = { description : "Search Google Groups for the query: %s " } chrome.omnibox.setDefaultSuggestion(suggestion); });