Tampermonkey® by Jan Biniok

Q302: How do I setup userscript-triggered downloads?

A302 First, please notice that downloading files to your harddisk may be security relevant! Malware might have an easy job once it is downloaded. So please make sure that you only allow the download of non-executable files.

There are a few steps necessary to enable the download feature: ( video tutorial)

  • Go to the options page
  • Scroll down to the "Downloads" section
  • Double-check the "Whitelisted File Extensions" setting to not contain file extensions of executable files
  • Select "Browser API" at the "Download Mode" option
  • A notification may come up, you need to click at it and to click "confirm" at the permission grant dialog

Note: Even though GM_download is a powerful function, it's finally more or less just convenience for the userscript autors.