我希望每次在扩展文件夹中保存文件时都重新加载我的 chrome 扩展,而不必在 chrome://extensions/中明确单击“重新加载”。这可能吗?
编辑:我知道我可以 update the interval Chrome 重新加载扩展程序,这是一个中途解决方案,但我宁愿让我的编辑器(emacs 或 textmate)触发保存重新加载或要求 Chrome 监视目录的更改。
最佳答案
您可以在 Chrome 中使用 "Extensions Reloader ":
Reloads all unpacked extensions using the extension's toolbar button or by browsing to "http://reload.extensions"
If you've ever developed a Chrome extension, you might have wanted to automate the process of reloading your unpacked extension without the need of going through the extensions page.
"Extensions Reloader" allows you to reload all unpacked extensions using 2 ways:
1 - The extension's toolbar button.
2 - Browsing to "http://reload.extensions".
The toolbar icon will reload unpacked extensions using a single click.
The "reload by browsing" is intended for automating the reload process using "post build" scripts - just add a browse to "http://reload.extensions" using Chrome to your script, and you'll have a refreshed Chrome window.
更新:截至 2015 年 1 月 14 日,该扩展是开源的,available on GitHub .
关于javascript - 如何自动重新加载我正在开发的 Chrome 扩展程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2963260/