feat(browser-extension): minor code improvement about use class list instead class name
This commit is contained in:
parent
a2ede05c9b
commit
dcc9dfef21
@ -133,7 +133,7 @@ function match(node, skipMatch) {
|
|||||||
if (node.hasAttributes()) {
|
if (node.hasAttributes()) {
|
||||||
return (
|
return (
|
||||||
// 2023-06-10: twitch.tv temporary fix
|
// 2023-06-10: twitch.tv temporary fix
|
||||||
node.className !== 'chat-line__message' &&
|
!node.classList.contains('chat-line__message') &&
|
||||||
// ...
|
// ...
|
||||||
!node.getAttribute('data-cookie-dialog-monster') &&
|
!node.getAttribute('data-cookie-dialog-monster') &&
|
||||||
isInViewport(node) &&
|
isInViewport(node) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user