Add items to tab's context menu in Google Chrome

狂风中的少年 提交于 2019-12-13 07:25:37

问题


In Google Chrome web browser I would like to add options such as "Bookmark Selected Tab", "Close tab to the left" to the tab's context menu.

Is it possible? If possible, what is the API I must check?


回答1:


No, it's not possible.

The closest API that exists is contextMenus API.

However, if you look at the available "contexts" (objects whose menu you can change), there is no "tab" there.

So, at least currently, you can't modify a tab's context menu.



来源:https://stackoverflow.com/questions/30950552/add-items-to-tabs-context-menu-in-google-chrome

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