Created
June 5, 2013 19:49
-
-
Save bencevans/5716739 to your computer and use it in GitHub Desktop.
@gifs Tweets 2 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
$('.tweet').each(function() { | |
if($(this).find('.username').text() == '@GIFs') { | |
var el = $(this).find('.tweet-text'); | |
el.html('<img style="max-width: 100%;" src="' + el.text() + '" alt="' + el.text() + '"/>'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment