How can I set up a context menu in Google Chrome so that all of the menu are top level?

天大地大妈咪最大 提交于 2019-12-04 09:32:35

It's not possible, you are allowed to create only one top level menu per extension.

From specs:

You can create as many context menu items as you need, but if more than one from your extension is visible at once, Google Chrome automatically collapses them into a single parent menu.

Serg is right, it isn't possible with Chrome's menu. If you are willing to replace the whole right-click menu it is possible:

http://davidwalsh.name/mootools-context-menu

There are several other menu replacement plug-ins/frameworks.

Have you considered just adding a menu-bar to the pages you are interested in?

http://www.hongkiat.com/blog/drop-down-menu-30-free-scripts-to-enhance-header-navigation/

You could have one click access to the menu items you want.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!