Skip to content

Instantly share code, notes, and snippets.

@nishantrpai
Last active January 22, 2023 04:02
Show Gist options
  • Save nishantrpai/ef618b23cb6597b21cbce6b316c1b1c9 to your computer and use it in GitHub Desktop.
Save nishantrpai/ef618b23cb6597b21cbce6b316c1b1c9 to your computer and use it in GitHub Desktop.
Capture all ens and wallets from page
  1. Load the entire page
  2. Go to chrome console (menu > more tools > developer tools)
let ens = document.body.innerText.match(/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)?/g);

let wallets = document.body.innerText.match(/(0x)?[a-fA-F0-9]{40}/g);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment