Skip to content

Instantly share code, notes, and snippets.

@zhuowei
Last active July 13, 2020 03:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhuowei/b7758398ff2dc203898876d6775a4a70 to your computer and use it in GitHub Desktop.
Save zhuowei/b7758398ff2dc203898876d6775a4a70 to your computer and use it in GitHub Desktop.
Hide Duolingo phrases, so I can practice listening in Duolingo stories
(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