Api to get list of extensions installed in browser

淺唱寂寞╮ 提交于 2019-12-25 14:00:51

问题


I am developing an extension for chrome and safari.One step in this app is to get all the already installed extensions.Is there any safari or chrome api that can give the list of installed extensions? In safari installed extensions are stored in ~/Library/Safari/Extensions/Extensions.plist but i am not able to find any related api.


回答1:


For Chrome:

From within a Chrome Extension, you can use chrome.management.getAll to obtain a list of the installed extensions and apps.

For Safari:

There is no public API to do this in Safari, whether from a webpage or from within a Safari Extension.

However, you can code your Safari Extension such that you can detect whether your Safari extension is installed from your website.



来源:https://stackoverflow.com/questions/33195395/api-to-get-list-of-extensions-installed-in-browser

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