问题
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