Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ig="http://rg443.bugs3.com/p/?url="; ig="http://rg443.hj.cx/p/?url="
- var x={};x.pageSize=30;x.pages=2148;x.url="http://view.stern.de/de/topimages/0/?page=$i";x.j=1;x.tag="topimages";
- var cache1=cache1||{};
- if (!data1) {var data1=document.createElement("div");document.body.insertAdjacentElement("afterBegin",data1)};
- data1.innerHTML="";
- var n=data1.style
- n.marginLeft="140px";
- n.cursor="pointer";
- n.width=1436;
- n.minHeight=18360;
- n.overflowY="visible";
- if (!next1) {
- var next1=document.createElement("span");
- next1.innerText="more...";
- var n=next1.style;
- n.font="16pt Arial";
- n.color="blue";
- n.cursor="pointer";
- n.marginLeft=data1.style.marginLeft;
- data1.insertAdjacentElement("AfterEnd",next1);
- }
- function parse1(){
- var a=this.match(/\d+\/\S+\.jpg/gim),
- b=a.map(function(v,i){return '<img src="http://127.0.0.'+(i%10+1)+'/wp1/view.stern.de/de/picture/'+v+'?resize=320,200" style="width:320px;height:200px;margin:2px;image-rendering:optimizeQuality"/>'});
- //b=a.map(function(v,i){return '<img src="http://view-media.stern.de/de/picture/'+v+'" style="width:auto;height:235px;margin:2px;image-rendering:optimizeQuality"/>'});
- data1.insertAdjacentHTML("beforeEnd",b.join(""));
- }
- function q(tag) {
- var q = tag.match(/([tncgeu])(\d+)/) || ["t", 0];
- var k = {t:"topimages/0/?", c:"category/" + q[2] + "/?", g:"gallery/" + q[2] + "/?", n:"picture/0/?", e:"picture/0/?e=" + q[2] + "&", u:"picture/0/?u=" + q[2] + "&"};
- return"http://view.stern.de/de/" + k[q[1]] + "page=$i"
- }
- data1.onclick=function(e){
- var e=e.srcElement||e.target;
- if (e.tagName!="IMG") return;
- //var o="http://view-media.stern.de/de/original"+ e.src.match(/\/\d+\/\S+(?=-\.jpg)/)+"-1920.jpg";
- var o="http://view-media.stern.de/de/picture"+ e.src.match(/\/\d+\/\S+(?=-\.jpg)/)+"-1920.jpg";
- var w=window.open("about:blank");
- w.document.body.innerHTML='<div style="box-shadow: 10px 10px 5px dimgray;border-radius:10px;image-rendering: optimizeQuality;position:absolute;left:10%;top:10%;width:80%;height:80%;background-repeat:no-repeat;background-position:left top;background-size: cover;background-image:url('+e.src+')"></div>';
- setTimeout(function(){w.location="http://imgur.com/upload?url="+o},100);
- // http://eho.st/ http://imgur.com/upload?url=
- }
- next1.onclick=function(){
- var a=data1.innerHTML.match(/\/\d+\/\S+(?=-\.jpg)/gim)||[],a=a.map(function(v){return "http://view.stern.de/de/original"+v+".jpg" });
- function print1(){console.log("imgur:",this.split("\n").length-1),window.hl=this.toString();}
- post_imgur(a,print1);
- window.scroll(0,0); // data1.offsetTop
- data1.innerHTML="";
- for (var i=x.j;i<x.j+x.pageSize;i++) setTimeout(get_url,(i-x.j-1)*200,ig+x.url.replace("$i",i),parse1);
- document.title="vc "+ x.tag + " - " +x.j;
- x.j+=x.pageSize;
- // prefetch
- setTimeout(get_url,5000,"http://users1.jabry.com/rg443/text.asp?url="+x.url.replace("$i",i));
- }
- document.onkeyup=function(e){
- //console.log(e.which , e.keyCode,document.height,window.pageYOffset,window.innerHeight)
- // eof && pgdn
- if (e.keyCode==34 && (document.height-window.pageYOffset-window.innerHeight)<=0){next1.onclick();console.log("more");}
- }
- next1.click();
- function get_url(url,callback) {
- if (cache1.hasOwnProperty(url) && callback) {callback.call(cache1[url]);return};
- var r=new XMLHttpRequest();
- r.open("GET",url,true);
- r.onreadystatechange=function(){
- if (this.readyState==4 && this.status==200) {cache1[url]=this.responseText;callback&&callback.call(this.responseText);};
- }
- r.send();
- }
- /* upload imgur */
- function post_imgur(a,callback) {
- var r=new XMLHttpRequest();
- r.open("POST","http://176.34.162.148/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(","));
- }
- /*
- https://www.google.com/searchbyimage?image_url=http%3A%2F%2Fi.eho.st%2Fpjakk4ry.jpg&image_content=&filename=&safe=off&hl=en&bih=397&biw=1600
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement