I won't bother to add guard, make sure to wait till the page loaded.
It will add button on bottom left to download the image.
Just copy paste to your tampermonkey / violentmonkey
![](https://putmega.com/images/ss---Copy8fa1892ee183fe04.th.png)
The left ones are random page for testing.
// ==UserScript==//
@Name Scrape Likey profile// @namespace
http://tampermonkey.net/// @version 2024-04-03// @description try to take over the world!// @author komori// @match
https://likey.me/*// @icon https://www.google.com/s2/favicons?sz=64&domain=likey.me// @Grant none// ==/UserScript==(function() { 'use strict'; const button = document.createElement('btn'); button.className = 'btn-subscribe v-btn'; button.style.position = 'fixed'; button.style.bottom = '1rem'; button.style.left = '1rem'; button.style.cursor = 'pointer'; button.innerText = 'Download all images'; const link = document.createElement('a'); button.addEventListener("click", () => { // Get all images const imgs = document.querySelectorAll('img') // Loop through images for(let i = 0; i < imgs.length + 1; i++) { // If the url includes media and post, assign the link to download if(imgs
.src.includes('post') && imgs.src.includes('media')) { const imageUrl = imgs.src; const filename = imageUrl.split("/").pop(); downloadImage(imageUrl, filename); } } }); // Add button to body document.querySelector('body').appendChild(button);})();function downloadImage(imageUrl, filename) { fetch(imageUrl) .then(response => response.blob()) .then(blob => { const url = URL.createObjectURL(blob); const link = document.createElement('a'); link.href = url; link.download = filename || imageUrl.split('/').pop(); // Use filename if provided, otherwise extract from URL link.click(); });}