Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // http://www.wallpowper.com/wallpaper/2013/05/01/?C=M;O=A
- var b=document.body.innerHTML.match(/[\w+-]+\.jpg(?=">)/gim)||[],j=0;
- localStorage["w"+location.href.match(/\d+/g).slice(-3).join("")]=b.join(" ");
- function grid_preview(start){
- if (!start) start=0;
- for (var a=[],i=start;i<start+450;i++) {a.push('<img src="http://127.0.0.'+ (i%30+1) + '/wp1/' + location.hostname+ location.pathname.replace("wallpaper","medium") +'/'+b[i]+'?resize=320,200" style="width:320px;height:200px" onerror="rem3(this)" />'); if (i>=b.length) break;}
- window.stop();
- document.body.innerHTML="<div style=\"width:1300px;\">" +a.join("")+"</div>";
- document.body.insertAdjacentHTML("beforeEnd",'<br><a href="#" onclick="grid_preview(j+=450);setTimeout(window.scroll,200,0,0);return false;" style="font:menu;font-size:14pt;color:black;text-decoration:none;">more</a>');
- document.body.insertAdjacentHTML("beforeEnd",'<a href="#" onclick="grid_preview(j-=450);setTimeout(window.scroll,200,0,0);return false;" style="font:menu;font-size:9pt;color:black;text-decoration:none;margin-left:10px;" title="scroll back"> scroll back </a>');
- document.title="imgur1 - " +start;
- window.scroll(0,0);
- }
- function rem1(el){setTimeout(function(){el.parentElement.removeChild(el)},100);}
- function rem2(el){el.style.display="none";}
- function rem3(el){el.style.visibility="hidden";}
- grid_preview(j);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement