Advertisement
TheGuywithTheHat

Keep at 666 XUts3HZ

Dec 21st, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var f = function() {
  2.     var keepAt = 666;
  3.     var score = parseInt($('.points-XUts3HZ').text());
  4.     var isUpPushed = $('#mainUpArrow').hasClass('pushed');
  5.     var isDownPushed = $('#mainDownArrow').hasClass('pushed');
  6.  
  7.     if(score > keepAt && !isDownPushed) {
  8.         if(score == keepAt + 1 && isUpPushed) {
  9.             $('#mainUpArrow').click();
  10.         } else {
  11.             $('#mainDownArrow').click();
  12.         }
  13.     }
  14.  
  15.     if(score < keepAt && !isUpPushed) {
  16.         if(score == keepAt - 1 && isDownPushed) {
  17.             $('#mainDownArrow').click();
  18.         } else {
  19.             $('#mainUpArrow').click();
  20.         }
  21.     }
  22. };
  23.  
  24. setInterval(f, 1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement