Last active
September 16, 2020 07:55
-
-
Save robertcdawson/100cf9f24f3c55f06cd177569cc6feb1 to your computer and use it in GitHub Desktop.
Quickly visually estimate color contrast ratio of text within or over images.
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
// Run in console: | |
const images = document.querySelectorAll('img'); | |
images.forEach(image => { | |
image.style.filter = "blur(5px) grayscale(1)"; | |
}); | |
// Or, make a bookmarklet: | |
javascript:const images = document.querySelectorAll('img'); images.forEach(image => { image.style.filter = "blur(5px) grayscale(1)"; }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment