This sample demonstrates the "omnibox"
manifest key and API by creating a keyword that opens up a browser search in a new tab.
The extension uses the "omnibox"
manifest key and its parameter "keyword"
. When chrome.omnibox.onInputEntered.addListener()
is called and the keyword 'newTab' is used, a new tab is opened with a google search for the user's input text.
- Clone this repository.
- Load this directory in Chrome as an unpacked extension.
- Type 'newTab' and some text you wish to google within the browser omnibox.