[Request] Use filename specified in HTML5 download attribute

Ask for help about FlashGot, no registration needed to post
Post Reply
Dave Davidson

[Request] Use filename specified in HTML5 download attribute

Post 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"
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

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

Post by Giorgio Maone »

It was already in my TODO list, but thank you for the reminder :)
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Post Reply