fixed bug throwing TypeError with overlapping keywords
This commit is contained in:
parent
5bbde86d50
commit
709da823c0
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user