有什么快速方法可以使我对 Firefox 插件的更改在 Windows 中生效?
现在我每次修改一行都必须重新启动...
有没有办法让它刷新而无需重新启动firefox?
Now I have to restart whenever I modified a single line...
Is there a way to make it refresh without restarting the firefox?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您在扩展中使用普通目录而不是 JAR 文件,将
true
添加到install.rdf
并添加布尔值nglayout.debug.disable_xul_cache
/nglayout.debug.disable_xul_fastload
首选项并将其设置为true
。您还可以使用-purgecaches
命令行标志启动 Firefox(适用于 Firefox 4 及更高版本)。然后,您将能够直接在配置文件中编辑扩展文件,并立即应用这些更改。如果您有自己的对话框窗口,则关闭它并再次打开它就足够了。对于浏览器窗口覆盖,您必须打开一个新的浏览器窗口。 JavaScript 模块和 XPCOM 组件仍然需要重新启动浏览器,但是,每个浏览器会话仅加载一次。但至少您不必重新安装扩展。详细信息:设置扩展开发环境
Yes, you use plain directories in your extension instead of a JAR file, add
<em:unpack>true</em:unpack>
to yourinstall.rdf
and add booleannglayout.debug.disable_xul_cache
/nglayout.debug.disable_xul_fastload
preferences and set them totrue
. You also start Firefox with-purgecaches
command line flag (for Firefox 4 and newer). Then you will be able to edit extension files directly in the profile and have these changes picked up immediately. If you have an own dialog window then closing it and opening it again will be enough. For browser window overlays you will have to open a new browser window. JavaScript modules and XPCOM component will still need a browser restart however, these are loaded only once per browser session. But at least you won't have to reinstall the extension.More information: Setting up an extension development environment