从自托管 Firefox 插件中删除安装警告

发布于 2025-01-04 18:52:09 字数 258 浏览 1 评论 0原文

我正在自行托管一个 Firefox 插件,用户可以从我的网站下载该插件。当用户单击下载我的 Firefox 附加组件时,Firefox 会显示警告:

Firefox 阻止此网站 (example.com) 要求您安装 您计算机上的软件。

Firefox 插件安装警告

有办法阻止显示警告吗?

I am self-hosting a Firefox add-on that users can download from my website. When a user clicks to download my Firefox add-on, Firefox displays a warning:

Firefox prevented this site (example.com) from asking you to install
software on your computer.

Firefox add-on installation warning

Is there a way to prevent the warning from displaying?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

讽刺将军 2025-01-11 18:52:09

该弹出窗口的存在是有原因的,它可以保护用户免受潜在恶意插件的影响。
据我所知,在您这边禁用它是不可能的。

That popup is there for a reason, it protects users from getting potentially malicious addons without noticing.
Disabling it on your side is not possible afaik.

最笨的告白 2025-01-11 18:52:09

这是由 xpinstall.whitelist.XXXXXXX 首选项控制的,如果您转到 about:config 即可看到该首选项。默认情况下,您有允许 addons.mozilla.orgxpinstall.whitelist.add 和允许 getpersonas 的 xpinstall.whitelist.add.36。 com。如果用户认为您的网站值得信赖并且需要经常安装扩展,那么他可以为您的网站添加另一个条目。但通常更有意义的是阅读警告并确认(或不确认)。

This is being controlled by the xpinstall.whitelist.XXXXXXX preferences, visible if you go to about:config. By default you have xpinstall.whitelist.add allowing addons.mozilla.org and xpinstall.whitelist.add.36 allowing getpersonas.com. If the user considers your site trustworthy and needs to install extensions from it frequently then he can add another entry for your site. But typically makes more sense to just read the warning and confirm it (or not).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文