Created
February 25, 2017 22:11
-
-
Save adamnew123456/72751b74b989f0a4c52b8bde4a16e28e to your computer and use it in GitHub Desktop.
Driveby Voting On Reddit
This file contains hidden or 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 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