How to enable chrome extension without user intervention (programmatically)

泪湿孤枕 提交于 2019-12-12 18:29:01

问题


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.


回答1:


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 :

  • No more silent extension installs
  • Protecting Windows users from malicious extensions


来源:https://stackoverflow.com/questions/44514975/how-to-enable-chrome-extension-without-user-intervention-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!