Created
January 21, 2014 21:23
-
-
Save releu/8548672 to your computer and use it in GitHub Desktop.
retina images for twitter
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
var replaceImages = function(){ | |
$("img").each(function(i, img){ | |
var src = img.src.replace(/_normal/, "") | |
src = src.replace(/_bigger/, "") | |
if (img.src != src) | |
img.src = src | |
}) | |
} | |
setInterval(replaceImages, 100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment