Skip to content

Instantly share code, notes, and snippets.

@jz5
Created May 13, 2014 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jz5/369af5e146ff5f768035 to your computer and use it in GitHub Desktop.
Save jz5/369af5e146ff5f768035 to your computer and use it in GitHub Desktop.
(function($) {
$(".entry img").error(function() {
var m = /^http:\/\/i[0-2]\.wp\.com\/(.*)$/.exec($(this).attr("src"));
if (m && m[1]) {
$(this).attr("src", "http://" + m[1]);
}
return true;
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment