Skip to content

Instantly share code, notes, and snippets.

View Lars418's full-sized avatar
🍵
I may be slow to respond.

Lars Lars418

🍵
I may be slow to respond.
View GitHub Profile
@Lars418
Lars418 / gist:53f10b2fc9e488eb038cd3382b5e774d
Created August 18, 2021 18:00
Alle Bilder von einer Anzeige von ebay-kleinanzeigen herunterladen
/**
* HOWTO: Copy whole file, open devtools on page (F12 / Ctrl + Shift + i) and paste it into the console
* Chrome might ask you to allow downloading multiple images.
*/
// credits for forceDownload: https://stackoverflow.com/a/49886131/8463645
function forceDownload(url, fileName){
var xhr = new XMLHttpRequest();
xhr.open("GET", url, true);
xhr.responseType = "blob";