Skip to content

Instantly share code, notes, and snippets.

@nilium
Forked from rlemon/Kill It!
Created August 20, 2012 18:27
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 nilium/3406451 to your computer and use it in GitHub Desktop.
Save nilium/3406451 to your computer and use it in GitHub Desktop.
GIF KILLER
javascript:$('img').filter(function() { if( this.src.substr(-3).toUpperCase() === 'GIF' ) return this; }).replaceWith('<img src="http://i.imgur.com/vMgrL.png" />');;
javascript:Array.prototype.forEach.call(document.getElementsByTagName("img"),function(a){if("gif"===a.src.substr(-3).toLowerCase()){var b=document.createElement("img");b.src="http://i.imgur.com/vMgrL.png";a.parentNode.replaceChild(b,a)}});;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment