Skip to content

Instantly share code, notes, and snippets.

@rlemon
Created August 20, 2012 13:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rlemon/3403863 to your computer and use it in GitHub Desktop.
Save rlemon/3403863 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)}});;
javascript:function C(a){var b=a.target;"IMG"===b.nodeName&&(b.src="http://i.imgur.com/AM3Ae.png");B();a.preventDefault();a.stopPropagation();return!1}function A(){d.body.insertBefore(s,d.body.firstChild);d.addEventListener("click",C,!1)}function B(){d.body.removeChild(s);d.removeEventListener("click",C,!1)}var d=document,s=d.createElement("style");s.textContent="body * { cursor: crosshair; }";A();;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment