有没有办法覆盖 Firefox 扩展上的 maxVersion 检查?
有没有办法覆盖 Firefox 扩展中 maxVersion 的使用,以便在新的 Firefox 更新出现时扩展仍然可以工作?我认为这可以通过在 about:config 中设置一个新的 bool 来完成,但我试图从扩展本身来完成它。
Is there a way to override the use of maxVersion in firefox extensions so if a new firefox update comes out the extension will still work? I think this can be done by setting a new bool in about:config but I am trying to do it from the extension itself.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道只针对单个扩展执行此操作的方法,而且它确实没有意义。不可避免的是,它最终会停止工作。不过,您可以将其设置为任意高的值:
这意味着您无法通过 AMO 分发它(有充分的理由),但您可以自由地独立这样做。
I don't know a way to do it only for a single extension, and it really doesn't make sense. Inevitably, it will eventually stop working. You can set it to an arbitrarily high value, though:
This means you can't distribute it through AMO (for good reason), but you're free to do so independently.
覆盖
maxVersion
是什么意思?maxVersion
用于保护您和您的用户免受 Firefox 和 Gecko 中可能出现的 BC 破坏的影响。不过,您可以将其设置为您想要的最高值。但是,如果您想阻止 Firefox 检查兼容性,可以创建布尔键
extensions.checkCompatibility
并将其设置为 false,不过仅在开发扩展时建议这样做。How do you mean by overriding
maxVersion
?maxVersion
is there for protecting you and your users from possible BC breaks in Firefox and Gecko. You can set it as high as you want though.But if you want to prevent Firefox from checking compatibility, creating boolean key
extensions.checkCompatibility
and setting it to false is the way to go, though it's advised only when developing extensions.