Reddit Robin Autoclick

autoclick grow

  1. // ==UserScript==
  2. // @name Reddit Robin Autoclick
  3. // @namespace http://idonthaveone/
  4. // @version 1.0
  5. // @description autoclick grow
  6. // @author m1k3245
  7. // @match *.reddit.com/robin*
  8. // @grant none
  9. // ==/UserScript==
  10. /* jshint -W097 */
  11. var jq = document.createElement('script');
  12. jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
  13. document.getElementsByTagName('head')[0].appendChild(jq);
  14.  
  15. autoenter = setInterval(
  16. function(){
  17. if ($('.robin-home--thebutton').length > 0) {
  18. $('#joinRobinContainer').click()
  19.  
  20. setTimeout(
  21. function(){
  22. $('.robin-home--thebutton').click()
  23. setTimeout(
  24. function(){
  25. location.reload();
  26. },
  27. 2000)
  28. },
  29. 2000);
  30.  
  31. console.log('join')
  32. }
  33. else if (!$('.robin-chat--vote-increase.robin--vote-class--increase').hasClass("robin--active")) {
  34. $('.robin-chat--vote-increase.robin--vote-class--increase').click()
  35. console.log('grow')
  36. }
  37. else{
  38. console.log('null')
  39. }
  40. },
  41. 60000);