From d7ff6aa6a2a326f96f89e960f224f72cb8f9d63f Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 26 May 2022 22:25:16 -0400 Subject: [PATCH] Add user to channel id regex --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index fd842ef4..cc0a6d54 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1128,7 +1128,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(/(?:\/c\/|\/channel\/)(UC[a-zA-Z0-9_-]{22}|[a-zA-Z0-9_-]+)/)?.[1]; + ?.getAttribute("href")?.match(/\/(?:channel|c|user)\/(UC[a-zA-Z0-9_-]{22}|[a-zA-Z0-9_-]+)/)?.[1]; try { await utils.wait(() => !!getChannelID(), 6000, 20);