Add a note about the "download" attribute for anchors
authorAntonio Ospite <ospite@studenti.unina.it>
Sun, 12 Feb 2012 10:15:36 +0000 (11:15 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Sun, 12 Feb 2012 10:28:42 +0000 (11:28 +0100)
HTML specifies an attribute to suggest to the client the filename to use
when saving to the local filesystem, something like
"Content-disposition: attachment; filename" but per HTML element, which
sounds good, see:
http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#downloading-resources

This would be an interesting feature for DDL, but browser support is
very limited as for now.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
direct_download_links.user.js

index a5146c4..e1f17f3 100644 (file)
@@ -39,6 +39,8 @@
  *    the regexp starting from a glob line.
  *  - use xpath instead of regexp like in http://a32.me/2009/11/greasemonkey/
  *  - use jquery, like shown in http://a32.me/2009/11/greasemonkey/
  *    the regexp starting from a glob line.
  *  - use xpath instead of regexp like in http://a32.me/2009/11/greasemonkey/
  *  - use jquery, like shown in http://a32.me/2009/11/greasemonkey/
+ *  - Support the "download" attribute for anchors:
+ *    http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#downloading-resources
  */
 
 /* Fields supported by the "site" object.
  */
 
 /* Fields supported by the "site" object.