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

眉间皱痕 提交于 2019-12-18 09:09:34

问题


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" :(


回答1:


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.




回答2:


Please see this url. http://www.guyfromchennai.com/?p=104 This is worked for me




回答3:


There are other ways they could be detecting 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.



来源:https://stackoverflow.com/questions/571092/how-to-check-with-javascript-if-a-firefox-3-add-on-extension-is-installed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!