Created
August 4, 2023 13:38
-
-
Save ps73/e94eda462424b08e85b7b5ddf67d8e31 to your computer and use it in GitHub Desktop.
Postbox Comdirect alle Dateien downloaden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mit folgendem Script kannst du alle Dokumente innerhalb einer Seite aus der Comdirect Postbox downladen | |
// Öffne die Developer Konsole deines Browsers mit "rechter Maustaste" => "Seite untersuchen" | |
// Anschließend oben auf Konsole bzw. Console klicken und dort folgendes eingeben: | |
let ahrefs = Array.from(document.querySelectorAll('table .layer__content.layer-tooltip__content a[data-tid="downloadLink"]')); | |
let downloadFile = (index) => { | |
const el = ahrefs[index]; | |
el.click(); | |
setTimeout(() => { | |
if (index < ahrefs.length - 1) downloadFile(index + 1); | |
}, 150); | |
}; | |
// anschließend das Script mit folgender Eingabe starten | |
downloadFile(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment