Skip to content

Instantly share code, notes, and snippets.

@masnick
Created February 22, 2016 14: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 masnick/b1c5bf9c8972ae643321 to your computer and use it in GitHub Desktop.
Save masnick/b1c5bf9c8972ae643321 to your computer and use it in GitHub Desktop.
Bookmarklet for removing GIFs from a webpage
javascript:$('img').filter(function() { if( this.src.indexOf('.GIF') >= 0 || this.src.indexOf('.gif') >= 0) return this; }).replaceWith('<img src="http://placekitten.com.s3.amazonaws.com/homepage-samples/408/287.jpg" />');;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment