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
2 Answers
Reset to default 8No, 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
版权声明:本文标题:javascript - Can you get a list of Firefox add-ons programmatically - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743943079a2565920.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论