如何在没有用户干预的情况下启用Chrome扩展(以编程方式) [英] How to enable chrome extension without user intervention (programmatically)

查看:172
本文介绍了如何在没有用户干预的情况下启用Chrome扩展(以编程方式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个chrome扩展,并希望使用windows注册表作为软件安装设置的一部分进行安装。它为Chrome安装扩展,但处于禁用状态。扩展名在chrome:// extensions中的已安装扩展名列表中列出。我如何使用代码启用扩展(无需最终用户干预)。我不希望我的用户手动启用它。

解决方案

由于Chrome安全警察,您无法直接启用Chrome扩展(在Chrome 25之后)。



默认情况下,由第三方程序安装的使用外部扩展部署选项的扩展程序将禁用。当第三方程序安装扩展程序时,Chrome菜单将被标记,用户可以单击Chrome菜单查看包含启用扩展程序的选项的对话框或将其从计算机中删除。



另外,以前使用外部部署选项安装的所有扩展程序都将自动禁用。 Chrome会显示一次性提示,允许任何扩展程序的重新启用

/i.stack.imgur.com/mg3RZ.pngrel =nofollow noreferrer>



但您可以使用内嵌安装,但需要在Chrome网上应用店中上传您的扩展程序,并直接向用户询问。





更多信息请查看下面的链接:




I made a chrome extension and want its installation to be done as a part of software installation setup using windows registry. It installs the extension for chrome, but in disabled state. Extension is listed in the list of installed extension in chrome://extensions. How can I enable the extension using code(without end-user intervention). I don't want my user to enable it manually.

解决方案

You can't directly enable chrome extension because of chrome security police(After Chrome 25).

Extensions installed by third party programs using external extension deployment options will be disabled by default. When a third party program installs an extension, the Chrome menu will be badged, and users can click through the Chrome menu to see a dialog containing an option to enable the extension or to remove it from their computer.

In addition, all extensions previously installed using external deployment options will be automatically disabled. Chrome will show a one-time prompt to allow the re-enabling of any of the extensions.

But you can use inline installation but you need to upload your extension in Chrome Web Store and ask to user directly like this.

For More information check below links :

这篇关于如何在没有用户干预的情况下启用Chrome扩展(以编程方式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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