Skip to content

Instantly share code, notes, and snippets.

@davidbgk
Forked from rauschma/remove-gifs.js
Created November 20, 2015 19:44
Show Gist options
  • Select an option

  • Save davidbgk/d66c24ee39c22c1b199c to your computer and use it in GitHub Desktop.

Select an option

Save davidbgk/d66c24ee39c22c1b199c to your computer and use it in GitHub Desktop.
[].forEach.call(document.querySelectorAll('img'), function (img) { if (/\.gif/i.test(img.src)) img.remove() })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment