Skip to content

Instantly share code, notes, and snippets.

@zhuowei
zhuowei / hidephrases.js
Last active July 13, 2020 03:03
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;