Last active
September 3, 2015 12:04
-
-
Save hyperframed/39a398e3981020fca0f2 to your computer and use it in GitHub Desktop.
Wrap Tumblr inline Images (in text post) with link to source file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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