Created
February 22, 2016 14:00
-
-
Save masnick/b1c5bf9c8972ae643321 to your computer and use it in GitHub Desktop.
Bookmarklet for removing GIFs from a webpage
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
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