How do I make Firefox auto-refresh on file change?

前端 未结 10 697
半阙折子戏
半阙折子戏 2020-11-29 18:43

Does anyone know of an extension for Firefox, or a script or some other mechanism, that can monitor one or more local files. Firefox would auto-refresh or otherwise update i

10条回答
  •  悲哀的现实
    2020-11-29 19:08

    Have a look at FileWatcher extension: https://addons.mozilla.org/en-US/firefox/addon/filewatcher/

    • it's a WebExtension, so it works with the latest Firefox
    • it has a native app (to be installed locally) that monitors watched files for changes using native OS calls (no polling!) and notifies the WebExtension to let it reload the web page
    • reload is driven by rules: a rule contains the page URL (with regular expression support) and its included/excluded local source files
    • open source: https://github.com/coolsoft-ita/filewatcher

    DISCLAIMER: I'm the author of the extension ;)

提交回复
热议问题