Last active
November 30, 2018 06:48
-
-
Save 1c7/ae261e43ea7746dfabd095a82133e9a4 to your computer and use it in GitHub Desktop.
copy your subreddit list
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
// Step 1: visit | |
// https://www.reddit.com/subreddits/ | |
// Step 2: | |
// copy & past these into Chrome developer tool | |
var array = [] | |
document.querySelectorAll('.subscription-box ul li').forEach(function(element) { | |
var subreddit = element.querySelector('a[class="title"]') | |
subreddit_name = subreddit.innerText | |
array.push(subreddit_name) | |
}); | |
copy(array) | |
// now you can past to whereever you want |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment