Skip to content

Instantly share code, notes, and snippets.

@dpmccabe
Created February 14, 2020 16:15
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 dpmccabe/24a311dba2f0562737c0e088d8ea638c to your computer and use it in GitHub Desktop.
Save dpmccabe/24a311dba2f0562737c0e088d8ea638c to your computer and use it in GitHub Desktop.
click all join buttons on multireddit
function doSub() {
setTimeout(function() {
if ($('.subButtons a.add.active').length === 0) {
clearTimeout(doSub)
} else {
var el = $('.subButtons a.add.active:first')
console.log(el.parent().parent().parent().find('a:first').text())
$(el).click()
doSub()
}
}, 500)
}; doSub()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment