Skip to content

Instantly share code, notes, and snippets.

@rauschma
Created November 20, 2015 19:33
Show Gist options
  • Save rauschma/ed7ed7edf184d55767bc to your computer and use it in GitHub Desktop.
Save rauschma/ed7ed7edf184d55767bc to your computer and use it in GitHub Desktop.
[].forEach.call(document.querySelectorAll('img'), function (img) { if (/\.gif/i.test(img.src)) img.remove() })
@kvendrik
Copy link

psst js nerd fact: document.images also works ;P

@tikotzky
Copy link

@PhiLhoSoft
Copy link

@sylvainpolletvillard
Copy link

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