admin管理员组

文章数量:1355117

I spent a fair amount of time trying to determine why my view of a site didn't match a clients, after looking at the cache etc. we determined the problem to be with one of the add-ons (Adblock Plus in this particular case). It would have been much simpler if we could have had an easy way to query what add-ons were installed, and ideally active. Is there anyway to generate a list programmatically perhaps with JavaScript?

I spent a fair amount of time trying to determine why my view of a site didn't match a clients, after looking at the cache etc. we determined the problem to be with one of the add-ons (Adblock Plus in this particular case). It would have been much simpler if we could have had an easy way to query what add-ons were installed, and ideally active. Is there anyway to generate a list programmatically perhaps with JavaScript?

Share Improve this question edited Dec 8, 2017 at 14:27 Cœur 38.8k25 gold badges205 silver badges277 bronze badges asked Aug 1, 2010 at 1:58 Steve RobillardSteve Robillard 13.5k3 gold badges38 silver badges32 bronze badges 2
  • I should point out that Adblock is designed to hide itself from userland JavaScript as much as possible! – MiffTheFox Commented Aug 1, 2010 at 2:06
  • What makes you think your site has a right to know what software a user has installed? – Daenyth Commented Aug 1, 2010 at 2:57
Add a ment  | 

2 Answers 2

Reset to default 8

No, you can't do this with user/page JavaScript. I imagine it would be a security risk, if you could.

But there is an add-on you can install that will generate a printable, copyable list of installed extensions/Add-ons.

Check out: "Extension List Dumper".

You cannot get a plete list just by using Javascript, but some Addons allow a check anyway.

accessing the chrome://-protocol was considered a security risk and therefore has been disabled. Nonetheless you can still acplish to detect an extension with the image-load trick. Why? Because extension developers may mark their extension as web-accessible setting the property “contentaccessible=yes” inside the chrome.manifest file of the extension. This is e.g. the case for the two famous plugins Firebug and Web Developer Toolbar

source: http://webdevwonders./detecting-firefox-add-ons/

本文标签: javascriptCan you get a list of Firefox addons programmaticallyStack Overflow