“您的浏览历史记录”在谷歌浏览器扩展 [英] "Your browsing history" on Google Chrome extension

查看:284
本文介绍了“您的浏览历史记录”在谷歌浏览器扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我写了一个Google Chrome扩展。我想要做的就是提供打开特定网址的新选项卡的功能。为了做到这一点,我在manifest.json文件中加入了tab权限。一切正常。



现在,当我发布我的扩展程序时,它说我的扩展程序可以访问您的浏览历史记录。我不需要/想要对打开的选项卡执行任何操作。我不喜欢这样的事实,那就是暗示我的扩展可以做我不需要的东西。有没有什么办法让我可以在我的扩展程序的特定网址打开一个新的标签页,而不会给我浏览历史记录权限?

解决方案

chrome.tabs.create()不需要标签权限。


So I wrote a Google Chrome extension. All I want to do is provide the ability to open a new tab of a particular url. In order to do so I included the "tab" permission in the "manifest.json" file. Everything works.

Now, when I publish my extension, it says my extension can access "your browsing history". I don't need/want to do anything with the opened tabs. I don't like the fact that is is sort of implying that my extension can do something that I in no way need. Is there any way to allow me to open a new tab at a particular url from my extension without giving me "your browsing history" rights?

解决方案

chrome.tabs.create() doesn't require tab permission.

这篇关于“您的浏览历史记录”在谷歌浏览器扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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