Advertisement
Guest User

Untitled

a guest
Nov 21st, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. console.clear();
  2. var s= document.createElement("script");
  3. s.src="https://code.jquery.com/jquery-2.2.4.min.js";
  4. document.getElementsByTagName("head")[0].appendChild(s);
  5.  
  6. window.setTimeout("sendRequests()", 1500);
  7.  
  8.  
  9. function sendRequests()
  10. {
  11.  
  12.   var l=$('.joms-list--friend li a.btn-default');
  13.   var found=false;
  14.   for(var i=0;i<l.length;i++)
  15.   {
  16.     var e=$(l[i]);
  17.      if($(e).attr("onclick")!="")
  18.      {
  19.         $(e).click();
  20.         window.setTimeout("sendRequests()", 1);
  21.         return;
  22.      }
  23.   }
  24.  
  25.  
  26.   console.clear();
  27.   window.setTimeout("clickNext()", 200);
  28.  
  29. }
  30. function clickNext()
  31. {
  32.    var next=$('.pagination li.active').next().find("a").first();
  33.    var href= $(next).attr("href");
  34.    window.location.href=href;
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement