Google Chrome Omnibox Search extension that enables you to search Alexa (alexa.com) from the Omnibox. To use, simply type ‘alx’, a space, and your search query into the Omnibox and it will open your search results up in a new tab.
manifest.json
{ "name" : "Alexa Search", "short_name": "alx Search", "description" : "To use, type 'alx' & space, and a query term into the Omnibox. timothytocci.com", "version" : "0.1", "background" : { "scripts" : ["background.js"] }, "omnibox" : { "keyword" : "alx" }, "icons" : { "16" : "alx_16.png", "32" : "alx_32.png", "48" : "alx_48.png", "128" : "alx_128.png" }, "manifest_version" : 2 }
background.js
chrome.omnibox.onInputEntered.addListener(function (text) { var createProperties = { url : "http://www.alexa.com/search?q=" + encodeURIComponent(text) }; chrome.tabs.create(createProperties); }); chrome.omnibox.onInputStarted .addListener(function () { var suggestion = { description : "Search Alexa using the query: %s " } chrome.omnibox.setDefaultSuggestion(suggestion); });