Last active
July 13, 2020 03:03
-
-
Save zhuowei/b7758398ff2dc203898876d6775a4a70 to your computer and use it in GitHub Desktop.
Hide Duolingo phrases, so I can practice listening in Duolingo stories
This file contains hidden or 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
(function() { | |
if (document.getElementById("zhuowei-hidephrase")) { | |
document.getElementById("zhuowei-hidephrase").remove(); | |
} | |
const elem = document.createElement("style"); | |
elem.id = "zhuowei-hidephrase"; | |
// TODO(zhuowei): autodetect the classes by going through all of the CSS | |
elem.textContent = ` | |
._3YBKO *, ._2rXtz .phrase * { | |
color: white !important; | |
-webkit-user-select: auto; | |
-moz-user-select: auto; | |
-ms-user-select: auto; | |
user-select: auto; | |
}` | |
document.head.appendChild(elem); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment