Skip to content

Instantly share code, notes, and snippets.

@hyperframed
Last active September 3, 2015 12:04
Show Gist options
  • Save hyperframed/39a398e3981020fca0f2 to your computer and use it in GitHub Desktop.
Save hyperframed/39a398e3981020fca0f2 to your computer and use it in GitHub Desktop.
Wrap Tumblr inline Images (in text post) with link to source file
$('.tmblr-full').find('img').each(function(){
var source = $(this).attr('src');
$(this).wrap('<a href="' + source + '"></a>');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment