Just click save all images

CodeGuy
July 21, 2016

You can extract or download all images from any webpage using a bookmarklet. Creating a bookmarklet is just easy, you will drag the below link to your bookmarks bar.

For example, if you want to download all images from the google image search, then scroll untill you reach the bottom of the page as shown in the video and then click the dragged bookmarklet and allow files to download. This also works Mobile Chrome browser. Which can be used as an chrome android extension.





To use, Open the page to be extracted, let it load completely then click on the bookmarks bar. This will open the new window with the extracted code.


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
javascript: (function() {
    tstr = '';
    s = document.getElementsByTagName('img');
    for (i = 0; i < s.length; i++) {
        tstr = s[i].getAttribute("src");
        var link = document.createElement('a');
        link.href = tstr;
        link.download = tstr;
        document.body.appendChild(link);
        link.click();
    }
})();

0 comments

Do not spam.

Like us on Facebook

Blog Archive