Resize, compress and convert images to WebP. Runs entirely in your browser.
This console snippet finds all images, including lazy-loaded and CSS backgrounds.
(() => {
const imgSrcs = Array.from(document.querySelectorAll('img')).map(img => img.src || img.dataset.src);
const bgImgs = Array.from(document.querySelectorAll('*')).flatMap(el => {
const style = window.getComputedStyle(el);
const bgImg = style.backgroundImage;
if (bgImg && bgImg !== 'none') {
const match = bgImg.match(/url\("?(.+?)"?\)/);
return match ? [match[1]] : [];
}
return [];
});
const allUrls = [...new Set([...imgSrcs, ...bgImgs])]
.filter(Boolean)
.map(url => new URL(url, window.location.href).href)
.filter(url => url.startsWith('http'));
copy(allUrls.join('\n'));
console.log(`✅ ${allUrls.length} image URLs found and copied to your clipboard! Paste them into the "From Direct URLs" box.`);
})();