Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.clear();
- var s= document.createElement("script");
- s.src="https://code.jquery.com/jquery-2.2.4.min.js";
- document.getElementsByTagName("head")[0].appendChild(s);
- window.setTimeout("sendRequests()", 1500);
- function sendRequests()
- {
- var l=$('.joms-list--friend li a.btn-default');
- var found=false;
- for(var i=0;i<l.length;i++)
- {
- var e=$(l[i]);
- if($(e).attr("onclick")!="")
- {
- $(e).click();
- window.setTimeout("sendRequests()", 1);
- return;
- }
- }
- console.clear();
- window.setTimeout("clickNext()", 200);
- }
- function clickNext()
- {
- var next=$('.pagination li.active').next().find("a").first();
- var href= $(next).attr("href");
- window.location.href=href;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement