Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@onionmk2
Last active December 10, 2018 07:18
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 onionmk2/e8455940d5544f8ec60b79f15295e502 to your computer and use it in GitHub Desktop.
Save onionmk2/e8455940d5544f8ec60b79f15295e502 to your computer and use it in GitHub Desktop.
// paste this into web console
codes = $("code");
contents = Array.from(codes).map(i => i.textContent); //.filter(i => i.includes("@"));
uniqs = contents.filter((v, i, a) => a.indexOf(v) === i);
copy(uniqs.join('\n')); // save array to clipboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment