Skip to content

Instantly share code, notes, and snippets.

@mikker
Created August 8, 2011 19:55
Show Gist options
  • Select an option

  • Save mikker/1132560 to your computer and use it in GitHub Desktop.

Select an option

Save mikker/1132560 to your computer and use it in GitHub Desktop.
Make Tumblr avatars double in size using dotjs
$(".not_mine .post_avatar").each(function(){
var bg = $(this).css('background-image');
var n = bg.replace(/_64\.png/,"_128.png");
$(this).css({ backgroundImage: n, width: 128, height: 128, marginLeft: -64 });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment