Api to get list of extensions installed in browser

2019-09-13 03:33发布

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条回答
该账号已被封号
2楼-- · 2019-09-13 03:59

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.

查看更多
登录 后发表回答