Created
February 14, 2020 16:15
-
-
Save dpmccabe/24a311dba2f0562737c0e088d8ea638c to your computer and use it in GitHub Desktop.
click all join buttons on multireddit
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
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