Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var p=location.href,i=0,j=0,h={};
- rec1(p);
- function rec1(p){
- var r=new XMLHttpRequest();
- r.open("GET",p);
- i++;
- //console.log(i,p,j);
- r.onload=function(){
- j--
- var fo=(this.response.match(/"[^/]\S+\/(?=">)/gim)||[]).map(function(v){return v.replace("\"",p)});
- var fi=(this.response.match(/"\S+jpg(?=")/gim)||[]).filter(function(v){return !/-\d+x\d+|-thumb/.test(v)}).map(function(v){return p +v.substring(1)});
- fi.length&&post_imgur(fi,function(){});
- fi.length&&(h[p]=fi);
- console.log(i,p,j,fi.length);
- fo.forEach(function(v,i){
- if(!h.hasOwnProperty(v)) {
- h[v]="";
- setTimeout(rec1,j*100,v);
- }
- })
- }
- r.send();
- j++;
- }
- 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(","));
- }
- // http://img1.bangtidy.eu/celebrity_archive/wp-content/uploads/2013/11/07/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement