Created
February 15, 2019 17:09
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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