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:
- defining multiple omnibox keywords for one extension in the manifest file
- letting
chrome.omnibox.onInputEntered
and other events know what keyword is enabled
thanks in advance.
No, the Chromium developers have made it clear that they will not support multiple omnibox keywords for extensions:
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:
Instead of supporting both
keyword1 something
andkeyword2 something
, you can usemasterkeyword keyword1 something
andmasterkeyword keyword2 something
.