Reputation: 2696
I am writing a small plugin for Wordpress and I need to detect whether a chrome extension is "Enabled".
At the moment I am able to detect if an extension is "Installed" only by connecting to one of its resources, However, I need to detect if the installation is "Enabled" or "Disabled"
Is this possible guys?
Thanks for your time.
Upvotes: 1
Views: 2252
Reputation: 4672
You have a few options.
management
permission and then reports the results of get
or [getAll][1]
to your plugin, then examines ExtensionInfo for the enabled/disabled state.If you're looking for a general answer of how an arbitrary web page can detect an arbitrary extension, there is no such method. There are two reasons this is true. First, Chrome (like most other web browsers) generally avoids making proprietary extensions of this sort to the open web, and what you're asking for is exactly that -- a special method for normal web pages to ask about Chrome extensions. Second, for privacy reasons Chrome wouldn't provide a non-privileged method for an extension or webpage to query which extensions the user has installed. You might have the Embarrassing Foot Fungus Prevention Extension installed on your machine, and it would be upsetting if random web pages could learn that about you.
Upvotes: 1