diff --git a/visual/4chan-hide-threads.js b/visual/4chan-hide-threads.js index 3c454d2..13ae761 100644 --- a/visual/4chan-hide-threads.js +++ b/visual/4chan-hide-threads.js @@ -13,7 +13,7 @@ window.addEventListener("load", function () { for (let i = 0; i < data.length; ++i) { let inner_txt = data[i].innerText for (let j = 0; j < keywords.length; ++j) { - if (inner_txt.includes(keywords[j])) { + if (inner_txt.includes(keywords[j]) && data[i].offsetParent !== null) { data[i].offsetParent.style.display = "none" } }