如何使用 JavaScript 启用/禁用 forefox 插件
我想启用在 firefox 重新启动后手动禁用的插件。我可以使用方法“onDisabling:function(addon,needsRestart)”监听启用/禁用 firefox 插件的事件。我可以使用 javascript 启用扩展吗?任何想法都会受到赞赏吗?
I want to enable the addon which is disabled manually after firefox restart .I can listen the events for enable/disable firefox addon with the methods "onDisabling: function(addon, needsRestart)" .Can I enable the extension using javascript.any ideas would be appreciated?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为此,您可以使用附加组件管理器 API。类似的内容:
这里
[电子邮件受保护]
代表ID当然,您要启用的附加组件的名称。You can use Add-on Manager API for this. Something along these lines:
Here
[email protected]
stands for the ID of the add-on you want to enable of course.