Skip to content

Commit

Permalink
Fix YouTube creator detection for search navigations
Browse files Browse the repository at this point in the history
  • Loading branch information
zenparsing committed Dec 16, 2024
1 parent 429b676 commit 94c8c87
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ initializeDetector(() => {
}

let elem = document.querySelector<HTMLAnchorElement>('a[aria-label=About]')
if (elem) {
if (elem && elem.checkVisibility()) {
channel = getChannelFromURL(elem.href)
if (channel) {
return channel
}
}

elem = document.querySelector<HTMLAnchorElement>('a.ytp-ce-channel-title')
if (elem) {
if (elem && elem.checkVisibility()) {
channel = getChannelFromURL(elem.href)
if (channel) {
return channel
Expand Down

0 comments on commit 94c8c87

Please sign in to comment.