Advertisement
rg443

post_picsarus

Mar 8th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function post_picsarus(a,callback) {        
  2. var r=new XMLHttpRequest();
  3. r.open("POST","http://176.34.162.148/jabry/picsarus1.asp?u",true);
  4. r.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  5. r.onreadystatechange=function(){if (this.readyState==4 && this.status==200) callback&&callback.call(this.responseText); }
  6. r.send("u=" + a.join(","));
  7. }
  8. function post_picsarus2(a,callback) {        
  9. var r=new XMLHttpRequest();
  10. r.open("GET","http://176.34.162.148/jabry/picsarus1.asp?q="+a.join(","),true);
  11. r.onreadystatechange=function(){if (this.readyState==4 && this.status==200) callback&&callback.call(this.responseText); }
  12. r.send("");
  13. }
  14. // var x=document.createElement("textarea");x.cols=130;x.rows=50;document.body.appendChild(x);x.scrollIntoView(true);
  15. var a=x.value.match(/http:\/\/.*?.\jpg/gim)||[];
  16. a.forEach(function(v){post_picsarus2([v],function(){console.log(this.toString())})});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement