Page 1 of 1

[Request] Use filename specified in HTML5 download attribute

Posted: Mon Apr 28, 2014 12:23 pm
by Dave Davidson
I use FlashGot with IDM (Internet Download Manager) and regularly visit sites that use terrible, semi-random filenames.

Luckily...
  1. IDM allows you to define the local filename separately with command line parameter /f.
  2. Websites can tell browsers to use a filename different from the one in the URL by using the HTML attribute "download".
So, It would make my life a lot easier if FlashGot passed the filename in a[download] to IDM because then I could write a small Greasemonkey script to give links better filenames. You know, something like

Code: Select all

a.download = a.textContent.replace("Watch ", "") + ".mp4"

Re: [Request] Use filename specified in HTML5 download attri

Posted: Mon Apr 28, 2014 10:54 pm
by Giorgio Maone
It was already in my TODO list, but thank you for the reminder :)