Advertisement
dahousecat

autoclicker

Nov 15th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. var autoclick = true;
  2. function autoClick() {
  3. $('#bigCookie').click();
  4. var max = 6;
  5. var min = 2;
  6. var wait = Math.floor(Math.random() * (max - min + 1)) + min;
  7. if($('#goldenCookie').css('display') != 'none') {
  8. $('#goldenCookie').click();
  9. wait = 100;
  10. }
  11. if($('#seasonPopup').css('display') != 'none') {
  12. $('#seasonPopup').click();
  13. wait = 100;
  14. }
  15. if(autoclick) {
  16. setTimeout(function(){autoClick()}, wait);
  17. }
  18.  
  19. }
  20. autoClick();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement