Fix YouTube creator detection for search navigations

This commit is contained in:
zenparsing
2024-12-16 13:10:02 -05:00
parent 429b676d5e
commit 94c8c87276
@@ -69,7 +69,7 @@ initializeDetector(() => {
}
let elem = document.querySelector<HTMLAnchorElement>('a[aria-label=About]')
if (elem) {
if (elem && elem.checkVisibility()) {
channel = getChannelFromURL(elem.href)
if (channel) {
return channel
@@ -77,7 +77,7 @@ initializeDetector(() => {
}
elem = document.querySelector<HTMLAnchorElement>('a.ytp-ce-channel-title')
if (elem) {
if (elem && elem.checkVisibility()) {
channel = getChannelFromURL(elem.href)
if (channel) {
return channel