// jQuery: Download images in the folder /site-files/images/" pointed to by a link $('a[href*="/site-files/images/"][href$=".webp"],a[href*="/site-files/images/"][href$=".jpg"], a[href*="/site-files/images/"][href$=".jpeg"], a[href*="/site-files/images/"][href$=".png"], a[href*="/site-files/images/"][href$=".gif"]').attr("download", ""); // Download any file/image/doc in any sub-folder under ../downloads/.. pointed to by a link $('a[href*="/downloads/"]').attr("download", ""); // Add the note it's a download link, via CSS // text added following link : (EXT download) $(" " ).appendTo( "head" );