Search code examples
javascriptfirefoxfirefox-addondom-events

How to make Firefox call a function in an extension whenever a file is downloaded?


Is there any way I can make Firefox call a JavaScript function in my extension whenever it completes a download (passing the path of the downloaded file)?


Solution

  • nvm, found it out by myself - if anybody needs: https://developer.mozilla.org/en/Code_snippets/Downloading_Files