Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var url=location.href,i2=parseInt(url.match(/\d+/));url=url.replace(/\d+/,"$i");
- for (var i=i2;i>0;i--) setTimeout(function(i){
- var r=new XMLHttpRequest();
- r.i=i;
- r.open("GET",url.replace("$i",i),true);
- r.onload=function(){
- var a=(this.response.match(/http[^=]+jpe*g/gim)||[]).map(function(v){return encodeURI(v.replace(/-\d+x\d+/,""))});
- console.log(a.join("\n"),r.i);
- post_imgur(a,function(){console.log(this.toString(),r.i);});
- }
- r.send();
- },(i2-i)*500,i);
- function post_imgur(a,callback) {
- var r=new XMLHttpRequest();
- r.open("POST","http://176.34.162.148/jabry/imgur1.asp?u=&b=&x=",true);
- r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
- r.onreadystatechange=function(){if (this.readyState==4 && this.status==200) callback.call(this.responseText); }
- r.send("u=" + a.join(","));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement