Skip to content

Instantly share code, notes, and snippets.

@johnmurch
Created May 5, 2022 17:38
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 johnmurch/238ab472a5899226a11b3fe36e5421d9 to your computer and use it in GitHub Desktop.
Save johnmurch/238ab472a5899226a11b3fe36e5421d9 to your computer and use it in GitHub Desktop.
Find String in ALL the links
Array.from(document.getElementsByTagName('a')).map((a) => a.href).map((l) => l.includes("keyword") ? l : '').filter(Boolean)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment