Last active
October 21, 2016 05:01
-
-
Save nanake/b8ca3bea7e56e20bc2be5fbf2aff0569 to your computer and use it in GitHub Desktop.
Remove grayscale on websites
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
for (var element of document.querySelectorAll("html body div img video".split(" "))) { | |
window.getComputedStyle(element, null) | |
.getPropertyValue("filter") | |
.startsWith("grayscale") && | |
element.style.setProperty("filter", "none", "important") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment