Last active
June 5, 2018 03:52
-
-
Save takumus/e5bef6ad935d1ce068128017c4574543 to your computer and use it in GitHub Desktop.
This file contains 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
(function() { var nextBtn = document.querySelector(".SWk3c.Zk-Zb.YqVDN"); var progressElm = document.querySelector(".JSZAJ._3eoV-.IjCL9.WXPwG"); var length = progressElm ? progressElm.childElementCount : 1; var count = 0; var images = []; function getImage() { var src = document.querySelector("img.FFVAD").src; images.push(src); if (nextBtn) nextBtn.click(); if (++count < length) { setTimeout(getImage, 400); }else { document.body.innerHTML = ""; images.forEach(function(src) { var img = document.createElement("img"); img.src = src; img.style.width = "300px"; document.body.appendChild(img); }); } } getImage(); })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment