HaniiPuppy

keep votes at five on imgur

Oct 8th, 2014
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var f = function()
  2. {
  3.     if(parseInt($('.points-MPCOPGj').text()) > 5)
  4.     {
  5.         if($('#mainDownArrow').not('.pushed').length > 0)
  6.         {
  7.             $('#mainDownArrow').click();
  8.         }
  9.  
  10.         if($('#mainUpArrow').not('.pushed').length < 1)
  11.         {
  12.             $('#mainUpArrow').click();
  13.  
  14.             if($('#mainDownArrow').not('.pushed').length > 0)
  15.             {
  16.                 $('#mainDownArrow').click();
  17.             }
  18.         }
  19.     }
  20.  
  21.     if(parseInt($('.points-MPCOPGj').text()) < 5)
  22.     {
  23.         if($('#mainUpArrow').not('.pushed').length > 0)
  24.         {
  25.             $('#mainUpArrow').click();
  26.         }
  27.  
  28.         if($('#mainDownArrow').not('.pushed').length < 1)
  29.         {
  30.             $('#mainDownArrow').click();
  31.  
  32.             if($('#mainUpArrow').not('.pushed').length > 0)
  33.             {
  34.                 $('#mainUpArrow').click();
  35.             }
  36.         }
  37.     }
  38. }
  39.  
  40. setInterval(f, 1000);
Advertisement
Add Comment
Please, Sign In to add comment