Last active
November 30, 2020 17:06
-
-
Save Explosion-Scratch/a53710094f802ce62b8d7dff7e8587b7 to your computer and use it in GitHub Desktop.
Blur with click
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: { | |
var style = document.createElement("STYLE"); | |
style.innerHTML = `.blur {filter: blur(4px) !important;}`; | |
document.body.appendChild(style); | |
document.addEventListener("click", (e) => { | |
e.preventDefault(); | |
e.target.classList.toggle("blur"); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment