Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ig="http://users1.jabry.com/rg443/text.asp?url=";
- var ig="//rg443.hj.cx/p/?url=";
- document.head.insertAdjacentHTML("beforeEnd","<style>img.i250{width:250px;height:150px;zoom:1.0;border-radius:3px;image-rendering:optimizeQuality;}</style>");
- document.body.innerHTML="<div id=\"data1\" charset=\"UTF-8\" stlye=\"font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:11px;cursor:pointer\"></div><span onclick=\"next1(page++,15);scrollup();\" style=\"font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14pt;color:blue;text-decoration:underline;cursor:pointer;min-height:7750\">more</span>";
- var data1=document.getElementById("data1");
- var page=1,cat=false;
- function next1(page) {
- var paging=arguments[1];
- var r=new XMLHttpRequest(),a=[];
- cat ? r.open("GET", ig+"http://xn--80aqafcrtq.cc/en/category.php?cat=" + cat + "%26paged=" + page) :
- r.open("GET", ig+"http://xn--80aqafcrtq.cc/en/?paged=" + page);
- r.onload=function(){
- var s=this.responseText;
- var re=new RegExp('\\?p=(\\d+).*?title="(.*?)".*?src="(.*?)"',"gim"),m=null,j=0;
- while(m=re.exec(s)){
- //console.log("\t",++j,m.slice(1).join("|"));
- a.push(m.slice(1));
- };
- var b=a.map(function(v){return '<img src="'+v[2]+'"class="i250" alt="'+v[1]+'" p="'+v[0]+'"/> '});
- data1.insertAdjacentHTML("beforeEnd",b.join(""));
- //setTimeout(function(){window.scroll(0,window.scrollY+4*150)},300);
- document.title=page
- if (paging && paging>0) next1(++window.page,paging-1);
- }
- r.send();
- }
- function scrollup(){setTimeout(function(){window.scroll(0,window.scrollY+4*150)},300);}
- document.onclick=function(e){
- var e=e.srcElement||e.target;
- if (e.tagName!="IMG") return;
- var o=e.src.replace("/tmb/","/img/").replace("/small-","/");
- //console.log(e.src);
- //console.log(o);
- console.log(e.getAttribute("p"),e.alt,o);
- var w=window.open();
- var s=w.document.body;
- s.innerHTML='<img src="'+e.src+'" style="height:100%"/>';
- // "http://www.google.com/searchbyimage?image_url="
- var im=document.createElement("img");
- im.src=o;
- im.onload=function(){w.location=this.src; console.log("loaded")};
- im.onerror=function(){}
- }
- document.onkeyup=function(e){
- // console.log(e.which , e.keyCode,document.height,window.pageYOffset,window.innerHeight)
- if (e.keyCode==34 && (document.height-window.pageYOffset-window.innerHeight)==0) {next1(page++,15);scrollup()}; /* pgdn */
- //if (e.keyCode==33 && window.pageYOffset==0)x.prev(); /* pgup */
- }
- /*
- http://xn--80aqafcrtq.cc/en/?paged=1
- http://xn--80aqafcrtq.cc/en/?p=464548
- http://xn--80aqafcrtq.cc/tmb/4/6/4/small-Kate%20beckinsale,%20van%20helsing,%201920x1200.jpg
- http://xn--80aqafcrtq.cc/img/4/6/4/Kate%20beckinsale,%20van%20helsing,%201920x1200.jpg
- http://www.wallpage.ru/imgbig/wallpapers_49101.jpg
- http://xn--80aqafcrtq.cc/en/category.php?cat=14 #animals
- #13 city
- #34 girls
- #15 celebrities
- #59 interiors
- #25 nature
- var re=new RegExp('cat=(\\d+)" .*?>(.*?)</a>',"gim"),a=[];
- while(x=re.exec(document.body.innerHTML))a.push(x.slice(1));console.log(a.sort(function(a,b){return parseInt(a[0])-parseInt(b[0])}).join("\n"));
- 3,Sport
- 5,Miscellaneous
- 7,3D-Graphics
- 8,Cars
- 9,Aviation
- 10,Abstraction
- 11,Anime and manga
- 13,City, country
- 14,Animals
- 15,Celebrities
- 16,Games
- 17,Computers
- 18,Space
- 19,Motorcycles
- 20,Cartoons
- 21,Music
- 25,Nature
- 26,Movies
- 27,Fantasy
- 33,Love
- 34,Girls
- 55,People
- 59,Interiors
- 60,Signs of the zodiac
- 69,Food
- 78,Ships
- 87,Men
- 128,Widescreen
- 130,Emo
- 131,Comedy
- 133,Drawings
- 137,Photoshop
- 138,Creative
- 139,Brands
- 140,Christmas
- 141,New Year 2011
- 144,Rendering
- 145,Hi-tech
- 146,Macro
- 147,Minimalism
- 148,Mood
- 149,Holidays
- 150,Situation
- 151,Style
- 152,Textures
- 153,Fantasy
- 155,Weapon
- 5909,PSP
- 5910,PDA
- 5911,Valentine's Day
- 5912,Dual Screen
- 5923,Money
- 5924,Comics
- 5925,Soaps
- 5926,Designer Wallpaper
- 5927,Beer
- 5928,Army
- 7558,Girls and cars
- 7559,iPhone
- 7563,New
- 7570,Humorous
- */
- next1(page,9);
- // cat++;page=1;next1(page,5);window.scroll(0,0);data1.innerHTML="",cat;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement