From 6763fd3b4bf0e752b9be954377edcf548b444850 Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 20 May 2022 04:01:50 -0400 Subject: [PATCH] Allow more channel IDs Help with #753 --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index a80349ca..7029a89b 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1142,7 +1142,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})|\/c\/([a-zA-Z0-9_-]+)/)?.[1]; try { await utils.wait(() => !!getChannelID(), 6000, 20);