以编程方式检测Firefox是否安装了插件

问题描述:

我想知道'我们如何从应用程序中检测Mozilla浏览器中是否安装了插件/扩展程序?如果假设有人直接从浏览器中将其卸载,那么我们的应用程序将如何知道它. 可以使用php,javascript或jquery吗?

I would like to know 'How can we detect whether an addon/extension is installed on Mozilla Browser from our application? If suppose someone uninstalls it directly from the browser, then how our application come to know it. Can it be possible using php,javascript or jquery?

没有直接方法可以检查是否已安装加载项.在此之前也曾问过这个问题.请参阅.如何使用检查如果安装了Firefox附加组件/扩展程序,则使用Javascript

There is no direct method to check if an add-on is installed or not. This question was also asked here before. Please see. How to check with Javascript if a Firefox Add-on / Extension is installed

如果这是您自己的加载项,则可以编写一些自定义javascript方法来尝试与您的加载项进行通信,然后相应地显示警报.

If it's your own add-on then you can write some custom javascript method to try to communicate with your add-on and then display alert accordingly.

也许您可以在 window.navigator.plugins 中找到一些东西?

Perhaps you can find something at window.navigator.plugins?