Skip to content

Instantly share code, notes, and snippets.

@1c7
Last active November 30, 2018 06:48
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 1c7/ae261e43ea7746dfabd095a82133e9a4 to your computer and use it in GitHub Desktop.
Save 1c7/ae261e43ea7746dfabd095a82133e9a4 to your computer and use it in GitHub Desktop.
copy your subreddit list
// 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