Browser Extension, Google Chrome, Google-Groups-Search, Javascript

Google Chrome Extension – (Google) Groups Search, an Omnibox extension

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);
});

Install (Google) Groups Search Search Extension (chrome store)

Advertisement
Standard

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 )

Facebook photo

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

Connecting to %s