Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var page=1,pageSize=448;
- next1();
- document.onkeypress=function(e){if (e.keyCode==106){page++;next1()};if (e.keyCode==107){page--;next1()}};
- function next1(){
- var r=new XMLHttpRequest();
- r.open("GET","https://naturfotografen-forum.de/ajax.php?action=indexscroll_do&limit="+pageSize+"&skip="+ (page-1)*pageSize,true);
- r.onload=function(){
- var a=this.response.match(/o\d+-.*?(?=')/gim);
- var s=a.map(function(v,i){var b=v.match(/o(\d+)-(.*)/);b[2]=decodeURIComponent(b[2]); return '<a href="https://naturfotografen-forum.de/'+v+'" target="_blank" title="'+b[2]+'"><img src="http://i' +(i%3)+ '.wp.com/naturfotografen-forum.de/data/o/'+Math.floor(b[1]/5000)+'/'+b[1]+'/image.jpg?resize=320,200" alt="'+b[2]+'" style="width:320px;height:200px;margin:2px;border-radius:7px;" /></a>'});
- window.scroll(0,0);window.stop&&window.stop();
- document.body.innerHTML=s.join("")+ '<br><span onclick="page++;next1();" style="font: 16pt Helvetica;color:blue;text-decoration:underline;cursor:pointer;">more</a>';
- document.title= "nature photography - "+page;
- }
- r.send();
- }
- function upload1(){
- for(var page = 1, pageSize = 500;page <= 140;page++) {
- var r = new XMLHttpRequest;
- r.open("GET", "http://naturfotografen-forum.de/ajax.php?action=indexscroll_do&limit=" + pageSize + "&skip=" + (page - 1) * pageSize, true);
- r.onload = function() {
- var a = this.response.match(/o\d+-.*?(?=')/gim);
- var s = a.map(function(v) {
- var b = v.match(/o(\d+)-(.*)/);
- return"http://naturfotografen-forum.de/data/o/" + Math.floor(b[1] / 5E3) + "/" + b[1] + "/image.jpg"
- });
- console.log(s);
- post_imgur(s, function() {
- console.log("done")
- })
- };
- r.send()
- }
- 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(","))
- }
- }
- /*
- page 143
- 55/276833 last
- 276819 old
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement