Posted By

sjerrys on 05/12/10


Tagged

textmate tumblr


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

kantiano
swoicik


tumblrHighRes


 / Published in: Other
 

  1. var posts = $$('#posts li');
  2. var tumb = ".image_thumbnail";
  3. $each(posts,function(el){
  4. var img = el.getElement('.image_thumbnail');
  5. var hash = (img.src+'').split('o1_')[0].split('tumblr.com/')[1];
  6. var postId = el.id.replace('post','');
  7. var host = el.getElement('.post_avatar').href;
  8. var path = host+'photo/1280/'+postId+'/1/'+hash;
  9. img.src = path;
  10. img.style.width = img.style.height = 'auto'
  11. });

Report this snippet  

You need to login to post a comment.