Fix unsafe navigation

This commit is contained in:
Ajay 2022-05-17 22:39:49 -04:00
parent 393861dcd3
commit 3e3abf36e5

View file

@ -1125,7 +1125,7 @@ async function whitelistCheck() {
?? document.querySelector("a.ytp-title-channel-logo") // YouTube Embed
?? document.querySelector(".channel-profile #channel-name")?.parentElement.parentElement // Invidious
?? document.querySelector("a.slim-owner-icon-and-title")) // Mobile YouTube
?.getAttribute("href")?.match(/\/channel\/(UC[a-zA-Z0-9_-]{22})/)[1];
?.getAttribute("href")?.match(/\/channel\/(UC[a-zA-Z0-9_-]{22})/)?.[1];
try {
await utils.wait(() => !!getChannelID(), 6000, 20);