Created
August 17, 2011 00:29
-
-
Save defunkt/1150519 to your computer and use it in GitHub Desktop.
grove.io dotjs script for inlining images
This file contains 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
setInterval(function(){ | |
$('.content a').each(function() { | |
if (/\.(gif|jpe?g|png)/i.test($(this).text())) | |
$(this).html('<img src="'+$(this).text()+'"/>"') | |
}) | |
}, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Without jQuery: