DarkLeafyGreen
DarkLeafyGreen

Reputation: 70416

How to use address bar to control extension?

some time ago I read an article that it is possible to use the url adress bar in an google chrome extension.

E.g. wikipedia stackoverflow will search for stackoverflow and open the wikipedia site.

However I can't find any reference about that feature: http://code.google.com/chrome/extensions/getstarted.html

Can you provide some information on that?

Upvotes: 2

Views: 2107

Answers (2)

DarkLeafyGreen
DarkLeafyGreen

Reputation: 70416

I found it! It's called Omnibox

The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.

from https://developer.chrome.com/extensions/omnibox

Upvotes: 3

Chris Moschini
Chris Moschini

Reputation: 37967

Type a site name, press tab, then finish typing your search. It's a pretty strange UI concept but that's how it works. For example if you've visited stackoverflow.com before then go to the address bar and type "stackoverflow.com" then hit the tab key, the address bar changes to say "Search Stack Overflow:". You can press tab as soon as it suggests the domain name to switch to this search mode.

No extension needed.

Upvotes: 0

Related Questions