简体   繁体   English

如何使用Javascript检查是否已安装Firefox 3插件/扩展程序

[英]How to check with Javascript if a Firefox 3 Add-on / Extension is installed

Actually this question is based on a Blog Entry , which discusses the topic for FF2. 实际上,这个问题基于Blog条目 ,该条目讨论FF2的主题。 But how does this work with FireFox 3? 但这如何与FireFox 3一起使用?

I know that there must be a workaround, because recently I visited a site saying: "Please disable AdBlock+ before entering this site" :( 我知道必须有一种解决方法,因为最近我访问了一个网站,说:“进入该网站之前,请先禁用AdBlock +” :(

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. 甚至提到的FF2版本都是特定于该扩展名的-您不能为所有扩展名假定相同名称和放置的图标。

The AdBlock-spotters, as Stephen presumed, tend to be behavior-based and specific to that extension. 正如Stephen所推测的那样,AdBlock-spotters倾向于基于行为,并且特定于该扩展。 Likewise Greasemonkey-spotters, etc. 同样是Greasemonkey-spotters等。

Please see this url. 请查看此网址。 http://www.guyfromchennai.com/?p=104 This is worked for me http://www.guyfromchennai.com/?p=104这对我有用

There are other ways they could be detecting AdBlock+. 他们可以通过其他方法检测AdBlock +。 It could tell that you never loaded the ad with some server side code and assume you're using it, maybe? 它可以表明您从未在广告中加载某些服务器端代码,并假设您正在使用它,也许吗?

Or if the ad is flashed based, javascript could try to communicate with it first. 或者,如果广告是基于Flash的,则javascript可以先尝试与之进行通信。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM