Skip to content

Instantly share code, notes, and snippets.

@ps73
Created August 4, 2023 13:38
Show Gist options
  • Save ps73/e94eda462424b08e85b7b5ddf67d8e31 to your computer and use it in GitHub Desktop.
Save ps73/e94eda462424b08e85b7b5ddf67d8e31 to your computer and use it in GitHub Desktop.
Postbox Comdirect alle Dateien downloaden
// 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