From: Antonio Ospite Date: Sun, 12 Feb 2012 10:15:36 +0000 (+0100) Subject: Add a note about the "download" attribute for anchors X-Git-Tag: 0.4~5 X-Git-Url: https://git.ao2.it/GM_direct_download_links.git/commitdiff_plain/ca6cfbc09afa37b5f618e481aadf9ed2aafc2fd4?hp=6f3096e5c94e11a844907a63b27b49f551f92033 Add a note about the "download" attribute for anchors 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 --- diff --git a/direct_download_links.user.js b/direct_download_links.user.js index a5146c4..e1f17f3 100644 --- a/direct_download_links.user.js +++ b/direct_download_links.user.js @@ -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/ + * - 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.