Multiple context menu entries for a chrome extension?

I’ve been playing around with a Chrome extension to enable me to right click on some selection of text and search that text on a site like Wikipedia or IMDb. I’ve managed to do this, but when I right click I would prefer to have the options listed one after the other. The way Chrome context menu extensions work by default cause any items to be gathered under one parent menu, as described here: http://code.google.com/chrome/extensions/contextMenus.html

It does not specifically mention, however, that items absolutely cannot be listed individually. I haven’t seen anything to suggest how it could be done though. I imagine creating separate extensions would work, but that’s not an ideal solution.

  • How to retrieve the element where a contextmenu has been executed
  • CKEditor - Add Context Menu Item to Images
  • Adding copy & paste functionalities to a custom menu of a webapp
  • Context menus not working firefox add-on WebExtensions
  • Override site specific JavaScript right click context menu with browser specific right click context menu
  • how to disable default context menu for certain elements in mozilla using Prototype?
  • Anybody have any ideas?

  • Is it possible to override the context-menu in a browser?
  • HTML5 contextmenu - Access originally clicked element when menu item is clicked
  • Right mouse click detection on SVG shape in JavaScript not working
  • Making custom right-click context menus for my web-app
  • jQuery event contextmenu triggers underlaying div
  • jQuery context menu get clicked item
  • One Solution collect form web for “Multiple context menu entries for a chrome extension?”

    There’s no workaround than creating multiple extensions. It’s clearly stated in the Google Chrome Developer page that it doesn’t allow more than one item on the main context menu. If an extension tries to create more than one item, Chrome will collapse all of them into one single parent item.