i am trying to create a Google Chrome extension and i want it to listen to multiple keywords from the Omnibox. To make it short, i want to know whether these two things are possible:
chrome.omnibox.onInputEntered
and other events know what keyword is enabledthanks in advance.
Quick Search In Chrome Web Store Once installed, you can search for any Chrome app, extension, or theme right from the Omnibox. Just type “ws”, press tab, and then enter your search query. Your Chrome Web Store results will appear in the current tab.
The bar at the top of Chrome is called the omnibox (or Omnibar). It combines your regular address bar and the Google search box into one area in your browser. It's a powerful tool that can be used in a variety of ways. These tricks can be done on computers, iPads and other personal devices.
What is the Omnibox. It is what you see as the search box on the Chrome browser, but more technically the Omnibox is an API method that allows you to register a keyword with Google Chrome's address bar.
No, the Chromium developers have made it clear that they will not support multiple omnibox keywords for extensions:
My take on this is that an omnibox keyword is a UI surface, like a page/browser action. We limit extensions to 1 UI surface to avoid adding clutter. Given that, I don't think we should implement this.
Granted, this bug asks for both the ability to define multiple keywords and dynamically change those keywords on the fly. However, the developer response seems opposed to multiple keywords in general.
The same response suggests an alternative:
The keyword is meant to act as a prefix for your extension, so rather than having N keywords, how about 1 keyword that accepts N commands?
Instead of supporting both keyword1 something
and keyword2 something
, you can use masterkeyword keyword1 something
and masterkeyword keyword2 something
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With