Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* fetch url */
- function get_url(url,callback) {
- var r=new XMLHttpRequest();
- r.open("GET",url,true);
- r.onreadystatechange=function(){
- if (this.readyState==4 && this.status==200) callback.call(this.responseText);
- }
- r.send();
- }
- Array.prototype.unique = function(){
- return this.filter(function(s, i, a){ return i == a.lastIndexOf(s); });
- }
- function post_imgur(a,callback) {
- var r=new XMLHttpRequest();
- r.open("POST","http://176.34.162.148/jabry/imgur1.asp?u=&b=",true);
- //r.open("POST","http://notebook1.lan:8000/jabry/imgur1.asp?u=&b=",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(","));
- }
- function post1(s) {
- s=s.toString().replace(/3.jpg/gim,"4.jpg");
- post_imgur(s.match(/^http.*jpg$/gim),function(){console.log(this.toString(),page)});
- page--;
- if (page) get_url("http://users1.jabry.com/rg443/f5i.asp?q=following&p="+page,function(){post1(this.toString())});
- }
- var page=324;
- get_url("http://users1.jabry.com/rg443/f5i.asp?q=following&p="+page,function(){post1(this.toString())});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement