Created
November 20, 2015 19:33
-
-
Save rauschma/ed7ed7edf184d55767bc to your computer and use it in GitHub Desktop.
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
[].forEach.call(document.querySelectorAll('img'), function (img) { if (/\.gif/i.test(img.src)) img.remove() }) |
You can also try stopping the animation like this: http://stackoverflow.com/questions/3688460/stopping-gif-animation-programmatically
My lazy choice: https://github.com/simonlindholm/toggle-gifs
and for the Amish with JS disabled:
img[src*='.gif'] { display: none!important; }
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
psst js nerd fact:
document.images
also works ;P