在Google Chrome中将项目添加到标签的上下文菜单 [英] Add items to tab's context menu in Google Chrome

查看:132
本文介绍了在Google Chrome中将项目添加到标签的上下文菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Google Chrome网络浏览器中,我希望在选项卡的上下文菜单中添加诸如将选定标签页加入书签,关闭标签页等选项。



可能吗?如果可能的话,我必须检查什么API?

解决方案

不,这是不可能的。

存在的最接近的API是 contextMenus API



但是,如果您查看可用的上下文(其菜单可以更改的对象),那里没有选项卡。

,至少目前,您无法修改标签的上下文菜单。


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?

解决方案

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.

这篇关于在Google Chrome中将项目添加到标签的上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆