开发者

Preventing two conflicting Firefox extensions from being installed at the same time

开发者 https://www.devze.com 2022-12-13 08:29 出处:网络
I built two separate Firefox extensions which are fundamentally incompatible with each other. The incompatibility is by design, as it would be totally unlogical for a user to install both. While I can

I built two separate Firefox extensions which are fundamentally incompatible with each other. The incompatibility is by design, as it would be totally unlogical for a user to install both. While I can stress out in the doc that both shouldn't be used at the same time, I don't trust the user to read the doc, and I'm looking for a way that one extension could detect the presence of the other and either disable itself or the other one (ideally while popping an error message).

Is there a way for an extension to be aware of the presence of another extension? I know it's possible for an extension to specify it depends on another one, but what I need is the exact opposite, a way for an extension to开发者_开发问答 specify it conflicts with another one.


Firefox Addon Development : Detecting non-compatible addons?

0

精彩评论

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