Skip to content

Instantly share code, notes, and snippets.

@bordoni
Last active September 22, 2016 18:45
Show Gist options
  • Select an option

  • Save bordoni/2bd4bf105cf8708f5551330d86bbd5cd to your computer and use it in GitHub Desktop.

Select an option

Save bordoni/2bd4bf105cf8708f5551330d86bbd5cd to your computer and use it in GitHub Desktop.
Vote Streamy Awards 100 times a day
document.querySelectorAll('.name-align')[1].click();
console.group( 'DeFranco Show Votes!' );
var interval,
i = 0,
voteshow = function() {
var error = document.querySelectorAll('.error-content');
if ( 0 !== error.length ) {
console.groupEnd();
return 'You already Voted 100 times today!';
}
var shows = document.querySelectorAll('.btn');
if ( 0 === shows.length ) {
return;
}
shows[7].click();
document.querySelectorAll('.view-modal .btn-vote')[0].click();
interval = window.setInterval( function() {
var vote_again = document.querySelectorAll('.view-modal .btn-thanks-again');
if ( 0 === vote_again.length ) {
return;
}
i++;
vote_again[0].click();
// Note the User that you actually voted
console.log( 'Voted ' + i + ( 1 === i ? ' time!' : ' times!' ) );
window.clearInterval( interval );
window.setTimeout( voteshow, 1000 );
}, 500 );
return 'Hello Beautiful Bastards!';
};
voteshow();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment