flyinglamer

Robin Non-Spammy Autovoter

Apr 1st, 2016
426
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     1
  8. // @grant       none
  9. // ==/UserScript==
  10.  
  11. console.log('Hello LeCrushinator! Do you see this ?');
  12.  
  13. function clickVote() {
  14.     if ($ && $('.robin-chat--vote-increase').length > 0) {
  15.         console.log('voting');
  16.         $('.robin-chat--vote-increase').click();
  17.     } else {
  18.         setTimeout(clickVote, 2000);
  19.     }
  20. }
  21.  
  22. setTimeout(clickVote, 2000);
Add Comment
Please, Sign In to add comment