Skip to content

Instantly share code, notes, and snippets.

@ygkn
Created February 11, 2023 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ygkn/9ee14f3a92d16d679ef6a3a8c216f154 to your computer and use it in GitHub Desktop.
Save ygkn/9ee14f3a92d16d679ef6a3a8c216f154 to your computer and use it in GitHub Desktop.
for (const el of document.querySelectorAll(
"a[href^='https://bizboard.nikkeibp.co.jp/houjin/cgi-bin/nsearch/md_pdf.pl']:not([class])"
)) {
// wait 1s
await new Promise((res) => setTimeout(res, 1000));
el.download = "";
el.click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment