Created
November 5, 2012 23:30
-
-
Save kevinmarx/4021104 to your computer and use it in GitHub Desktop.
Remove the image size designator on the thumbnail image in the News Article page.
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
// For each image of the feed | |
$j('.newsPreviewThumb').each(function() { | |
var src = $j(this).attr('src'); | |
// Find and replace the _thumb. so we have a large image to work with | |
$j(this).attr('src', src.replace(/_thumb\.(png|jpg|jpeg|gif)$/, '.$1')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment