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.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
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.