How to add context menu to Chrome Omnibox (address bar)?

I am creating a Chrome extension that translates typos in a textbox in the Chrome browser.

I used the contextMenu API and succeeded in implementing an extension with which the user can invoke the context menu and select the extension menu to translate the selected text.

However, I noticed that the contextMenu API permission does not extend to omnibox where another context menu appeared (shown below) without my extension.

Could you please shed some light on this and help me figure out what permissions / APIs I should look into to take control of the chrome onmibox context menu?

+3


source to share


1 answer


As you discovered, it is really impossible to add an item to the Omnibox context menu with the current API iteration contextMenus

. I don't know if there are any plans to change it.



+4


source







All Articles