Last active
March 6, 2020 07:51
-
-
Save vanpariyar/0a7be52984fa7eab37445db33446fc3e to your computer and use it in GitHub Desktop.
Download all images in all pages add to console in your site.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('.galleryblock>a').each((ind , value) => { | |
console.log(jQuery(value).prop('href')); | |
var link = document.createElement('a'); | |
link.href = jQuery(value).prop('href'); | |
link.download = link.href.substring(link.href.lastIndexOf('/')+1);; | |
document.body.appendChild(link); | |
link.click(); | |
document.body.removeChild(link); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment