Reputation: 29756
I just created a chrome extension using the omnibox api.
"omnibox": { "keyword" : "a" },
I found out that it is not possible to use multible keywords or let the user choose a keyword for my extension although the extension is listed on the search engines settings page:
I addition to that the priority of the extension keyword is by far the lowest.
If a User already defined a keyword in the Default search engines / Other search engines
- sections the extension keyword is not usable.
Does anyone know a solution for at least one of these issues?
Maybe by using the NPAPI?
Upvotes: 11
Views: 1204
Reputation: 1802
For some extensions I have found it necessary to edit the extension source directly. Often this is available on GitHub or similar a repository.
Open the manifest.json
file in the extension's route directory. Edit or add this section:
"omnibox": { "keyword" : "key" }
Where "key
" is the keyboard shortcut key itself.
chrome://extensions/
developer mode
in top right of pageLoad unpacked extension...
and navigate to the cloned directorydeveloper mode
left on. Solve this by packing
the extension into a single .crx file (a type of .zip file).Pack extension...
(you can sign the file with a .pem key but this is not necessary).developer mode
in top right of pagepacking
step onto the Chrome windowchrome://extensions/
pagechrome://settings/
-> Manage search engines...
Upvotes: 2
Reputation: 37206
I'd like to let people know that it appears that this has changed and is no longer the case. I was exploring this possibility myself and found this page stating it wasn't possible. In order to change the keyword for my extension after installation I took the following steps:
I am using Chrome version 30.0.1588.0 on Windows, but I am not sure how long this has been editable.
Upvotes: 1
Reputation: 2344
This discussion has come up before and you can see an example of it here - https://code.google.com/p/chromium/issues/detail?id=75890.
It seems that the reason there is only one title:keyword pair is to prevent an over abundance of key words. There also does not appear to be any support that would allow for the end user to change this pair.
Upvotes: 2