开发者

firefox disable/enable add-on in a specific page

开发者 https://www.devze.com 2023-01-16 20:57 出处:网络
I\'m programming a system to work with in firefox, based on high end javascript. The users sometimes uses add-ons that conflict with the 开发者_运维知识库system.

I'm programming a system to work with in firefox, based on high end javascript.

The users sometimes uses add-ons that conflict with the 开发者_运维知识库system.

Is there a way i can control from my web-site to disable or enable specific firefox add-ons in a page?

Thanks.


You can do it inside an add-on, prior to Firefox 4 there was the nsIExtensionManager interface, starting with Firefox 4 there is the AddonManager object


I would say no, I wouldn't want sites I browse doing anything to my browser add-ons unless I said they could.

With things like Firebug you CAN detect them though and warn the user, then it's down to them to turn them off and not you.

And here's another thought...imagine me turning off your Adblock because my site doesn't work well with it ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消