Posts

Showing posts from November, 2021

Scroll through images in carousel using Jquery and download the images using curl batch script

 There might be two kinds of carousels. Carousel type 1 :  the one in which image tag's src is already loaded with its original image URL. For such carousel just execute below script in browser dev tool's snippet portion. async function myFunction(){ var first = "" ; var firstDone = false ; var lastDone = false ; while ( ! lastDone){ if (first == ($( ".photo-container > .photo-controls-wrapper > img" ).attr( "src" ))){ lastDone = true ; break ; } if ( ! firstDone){ first = $( ".photo-container > .photo-controls-wrapper > img" ).attr( "src" ); firstDone = ! firstDone; } console.log($( ".photo-container > .photo-controls-wrapper > img" ).attr( "src" )); $( ".navigation-button-right" ).click(); await sleep( 2000 ); } } function sleep(ms) { re...