如果安装Firefox 3附加组件/扩展组件,如何使用Javascript进行检查 [英] How to check with Javascript if a Firefox 3 Add-on / Extension is installed

查看:168
本文介绍了如果安装Firefox 3附加组件/扩展组件,如何使用Javascript进行检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其实这个问题是基于一个博客条目,讨论FF2的主题。
但是FireFox 3是如何工作的?



我知道必须有一个解决方法,因为最近我访问了一个网站:
在进入这个网站之前,请禁用AdBlock +:($ / b>

解决方案

出于安全原因,没有通用的方法来做到这一点。在那里提到的FF2版本是特定的扩展 - 你不能假设所有扩展相同的命名和放置的图标。



AdBlock-spotters斯蒂芬推测,倾向于基于行为和特定的延伸。同样Greasemonkey,spotters等。

Actually this question is based on a Blog Entry, which discusses the topic for FF2. But how does this work with FireFox 3?

I know that there must be a workaround, because recently I visited a site saying: "Please disable AdBlock+ before entering this site" :(

解决方案

There's no general-purpose way to do that, for security reasons. Even the FF2 version mentioned there was specific to that particular extension -- you can't assume identically-named and -placed icons for all extensions.

The AdBlock-spotters, as Stephen presumed, tend to be behavior-based and specific to that extension. Likewise Greasemonkey-spotters, etc.

这篇关于如果安装Firefox 3附加组件/扩展组件,如何使用Javascript进行检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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