Search code examples
google-chromegoogle-chrome-extensioncontextmenu

How to control order of extension item in Chrome context menu


Is there a way to control the order that my Chrome extension's context menu item appears in?

It probably can't appear above any of the Chrome's built in context menu items (like "Open link in new tab", etc.), but maybe there is a way to control where it appears among other extensions' context menu entries?

Probably not, because in all likelihood all makers of extensions want their's to be above all others, but just in case I'm wrong.. :)


Solution

  • The context menu entries are ordered alphabetically. This means that if you name your context entry something like AAWhatever, the likelihood of your entry being at the top is pretty high. I know of no other way to control the position of your entry using only your extension.