Advertisement
rg443

500px_preview

May 18th, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///var s=document.body.innerHTML.match(/\d+\/\w+(?=\/\d\.)/gim).map(function(v){return '<img src="http://127.0.0.'+  (v.charCodeAt(v.length-1)%10+1) +'/wp1/pcdn.500px.net/'+v+'/3.jpg?resize=320,200" style="width:320;height:200"/>'  });
  2. var s=unique1(document.body.innerHTML.match(/\d+\/\w+(?=\/\d\.)/gim)||[]).map(function(v){return '<img src="http://127.0.0.'+  (v.charCodeAt(v.length-1)%10+1) +'/5x/'+v+'/3.jpg" style="width:280;height:280"/>'  });
  3. document.body.innerHTML='<div id="data1" style="width:1140px;cursor:hand;margin-left:160px;">'+s.join(" ")+'</div>';
  4. function unique1(a){for(var c=Object.create(null),d=[],b=a.length;b--;)c[a[b]]||(c[a[b]]=!0,d.push(a[b]));return d};
  5. function click1(e){var e= e.target||e.srcElement;if(e.tagName!="IMG")return;var fid=e.src.match(/(\d+)(?=\/\w{40})/)[1];window.open("http://500px.com/photo/"+fid)}; data1.onclick=click1;window.scroll(0,0);
  6. // http://users1.jabry.com/rg443/f5i.asp?q=popular&p=1
  7.  
  8. // http://users1.jabry.com/rg443/f5i.asp?q=rg443/following&p=6
  9. document.body.insertAdjacentHTML("afterBegin",'<div style="font:menu">'+ document.body.innerHTML.match(/^\S+/gm).map(function(v){return '<a href="?q='+v+'" target="_blank">'+v+'</a>'}).join(" ")+'</div>');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement