Skip to content

Instantly share code, notes, and snippets.

@arnydo
Created July 12, 2021 13:02
Show Gist options
  • Save arnydo/491ab00bd3a30c287017ab3c4a96b1b6 to your computer and use it in GitHub Desktop.
Save arnydo/491ab00bd3a30c287017ab3c4a96b1b6 to your computer and use it in GitHub Desktop.
Snippet to click all onion links on a page
var links = document.links
for (let i = 0; i < links.length; i++) {
if (links[i].origin.match(/onion/gi)){
links[i].click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment