Skip to content

Instantly share code, notes, and snippets.

@adamnew123456
Created February 25, 2017 22:11
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 adamnew123456/72751b74b989f0a4c52b8bde4a16e28e to your computer and use it in GitHub Desktop.
Save adamnew123456/72751b74b989f0a4c52b8bde4a16e28e to your computer and use it in GitHub Desktop.
Driveby Voting On Reddit
function clickAll(elems) {
for (var i = 0; i < elems.length; i++) {
elems[i].click();
}
}
function driveByUpvote() {
clickAll($('[aria-label="upvote"]'));
}
function driveByDownvote() {
clickAll($('[aria-label="downvote"]'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment