Can you get a list of Firefox add-ons programmatic

2019-01-20 11:16发布

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?

2条回答
太酷不给撩
2楼-- · 2019-01-20 11:38

You cannot get a complete 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 accomplish 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.com/detecting-firefox-add-ons/

查看更多
【Aperson】
3楼-- · 2019-01-20 12:02

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".

查看更多
登录 后发表回答