Last active
July 26, 2019 18:59
-
-
Save kms70847/3f48bb8e878799486e5a9fd6185c2b83 to your computer and use it in GitHub Desktop.
Gif Hider - replaces gifs with a black rectangle until you hover over them
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:(function(){style = document.createElement("style"); style.stype = "text/css"; style.innerHTML = 'img[src$=".gif"]{filter: brightness(0%);} img[src$=".gif"]:hover{filter: brightness(100%);}'; document.getElementsByTagName("HEAD")[0].appendChild(style);})(); |
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
style = document.createElement("style"); | |
style.stype = "text/css"; | |
style.innerHTML = 'img[src$=".gif"]{filter: brightness(0%);} img[src$=".gif"]:hover{filter: brightness(100%);}'; | |
document.getElementsByTagName("HEAD")[0].appendChild(style); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment