flyinglamer

Non-Spammy Robin Autovoter

Apr 1st, 2016
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Robin Voter
  3. // @namespace   flyinglamer
  4. // @author      /u/flyinglamer
  5. // @description Robin auto voter
  6. // @include     https://www.reddit.com/robin
  7. // @version     2
  8. // @grant       none
  9. // ==/UserScript==
  10. function clickVote() {
  11.     if ($ && $('.robin-chat--vote-increase').length > 0) {
  12.         console.log('voting');
  13.         $('.robin-chat--vote-increase').click();
  14.     } else {
  15.         setTimeout(clickVote, 2000);
  16.     }
  17. }
  18.  
  19. setTimeout(clickVote, 2000);
Add Comment
Please, Sign In to add comment