以编程方式检测Firefox是否安装了插件 [英] Detecting programmatically whether addon installed on firefox

查看:105
本文介绍了以编程方式检测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?

这篇关于以编程方式检测Firefox是否安装了插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆