Skip to content

Instantly share code, notes, and snippets.

@iokiwi
Last active September 29, 2016 04:16
Show Gist options
  • Select an option

  • Save iokiwi/f7b21784a74c8c35f539917795c666dc to your computer and use it in GitHub Desktop.

Select an option

Save iokiwi/f7b21784a74c8c35f539917795c666dc to your computer and use it in GitHub Desktop.
Auto voter for phillip defranco on the Streamy video awards page.
/*
How to use:
1. go to https://goo.gl/TpDMLK (bipasses cross origin domain security policy, safe I promise)
2. Click on 'Show of the Year'
3. Complete the first vote manually (there is an authentication step that I can't script)
4. If you haven't already, click "vote again" to return to the list of nominated shows.
5. Open the browser developer tools by right clicking anywhere on the page and then selecting
'inspect element' or using the keyboard shortcut ctrl + shift + i (varies by browser/os)
6. Find the javascript console in the developer tools (again, slightly different on every browser)
7. Copy and paste the entire block of code into the console
8. Press enter. It will run for about three minutes, or untill you reach 100 votes.
9. Profit
Note: If it keeps stopping, increase the value of 'millisecondsToWaitForProcessing'
WARING: Under normal circumstances it is not recommended to paste anything you dont trust / understand into the javascript
console. You will have to take my word for it that this is legit, however I cannot be held responsible for any potential loss
or damage caused by running this code. :3
*/
/********** COPY AND PASTE THIS INTO THE JAVASCRIPT CONSOLE **********/
(function voteForPhilipDeFranco(count) {
count |= 0;
console.log("Votes Cast:" + count);
var philipsListPositionMinusOne = 7;
var millisecondsToWaitForProcessing = 2000;
document.getElementsByClassName("btn")[philipsListPositionMinusOne].click();
document.getElementsByClassName("btn-default")[0].click();
setTimeout(function(){
document.getElementsByClassName("btn-thanks-again")[0].click();
voteForPhilipDeFranco(++count);
}, millisecondsToWaitForProcessing);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment