admin管理员组文章数量:1327945
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: .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.
Anybody have any ideas?
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./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.
Anybody have any ideas?
Share Improve this question edited Jul 26, 2011 at 12:02 Martin asked Jul 26, 2011 at 10:29 MartinMartin 8401 gold badge7 silver badges25 bronze badges1 Answer
Reset to default 8There'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.
本文标签: javascriptMultiple context menu entries for a chrome extensionStack Overflow
版权声明:本文标题:javascript - Multiple context menu entries for a chrome extension? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742222910a2435565.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论