Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Swyter/d3f0ea0809d5ec1c6d6671333e609e99 to your computer and use it in GitHub Desktop.
Save Swyter/d3f0ea0809d5ec1c6d6671333e609e99 to your computer and use it in GitHub Desktop.
Get a list of reddit users commenting in the current thread. (Paste it in the developer console; if you know what you are doing)
list=[]; for (a of document.querySelectorAll(".commentarea a[href^='https://www.reddit.com/user/']:not([href$='/']):not([href*='/swyter'])")) list.push(a.href.split("/user/")[1]); uniq_list = [...new Set(list)]
l=""; for (a of uniq_list) l+=`/u/${a} `;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment