搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How can I find out what extensions (not plugins) are currently installed using JavaScript?

  • 2 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

I am creating a JavaScript module which detects if a Firefox extension is installed in the client's browser.

I can check if a Firefox plugin is installed by querying navigator.plugins object, but I can't figure out how to do this for extensions.

I am creating a JavaScript module which detects if a Firefox extension is installed in the client's browser. I can check if a Firefox plugin is installed by querying navigator.plugins object, but I can't figure out how to do this for extensions.

被采纳的解决方案

You can't check for extensions that are installed.
Plugins can be detected via navigator.plugins as you posted, but you can't detect extensions for privacy and security reasons.


It the past it was possible to check for images added by an extension, but that access was blocked.

定位到答案原位置 👍 0

所有回复 (2)

more options

For that kind of help you should see the documentation at MDN - https://developer.mozilla.org

more options

选择的解决方案

You can't check for extensions that are installed.
Plugins can be detected via navigator.plugins as you posted, but you can't detect extensions for privacy and security reasons.


It the past it was possible to check for images added by an extension, but that access was blocked.