javascript - 如何自动重新加载我正在开发的 Chrome 扩展程序?

标签 javascript google-chrome google-chrome-extension

我希望每次在扩展文件夹中保存文件时都重新加载我的 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/

相关文章:

javascript - 只匹配内部 HTML?

javascript - Contenteditable/jQuery/Javascript - 选择从光标/插入符号到段落末尾的文本

javascript - 窗口关闭后触发 chrome.windows.onRemoved

javascript - HTML5 移动版中的 Canvas 缩放

javascript - Ionic 2 列表未更新数据

javascript - marquee 标签在 google chrome 的悬停效果上不起作用

javascript - 不可变的 chrome sqlite 返回对象

windows - 在批处理文件中执行第二个命令

javascript - 仅当标签具有权限时,才会扩展脚本才会

javascript - Chrome 扩展弹出窗口有 2 - 3 秒的延迟