Write me javascript code I can execute in the browser console for a page which has a…
- User
Write me javascript code I can execute in the browser console for a page which has a gallery of images I'd like to download. The gallery is in the div class="row", with each image's details in a div with class="col-auto". Example with 2 images in the gallery (there may be 25 or more images):
<div class="row"> <div class="col-auto"> <a href="1255a/51z777j7u7708.webp"><img src="1255a_thumbs/51z777j7u7708.webp"> <br>Photo_Z00Y5198.we...</a> </div> <div class="col-auto"> <a href="1255a/51z777j7u7709.webp"><img src="1255a_thumbs/51z777j7u7709.webp"> <br>Photo_Z00Y5199.we...</a> </div> </div>The javascript code should be something I can paste into the browser console to execute. The script should download each image in the gallery using the image path found in but save the image with the name found in the next line before the first period in the name. For example, the image at path 1255a/51z777j7u7708.webp has the truncated name shown in the HTML as Photo_Z00Y5198.we..., which would mean the image should be saved with the name Photo_Z00Y5198.webp.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.