aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-05-20 04:01:50 -0400
committerAjay <[email protected]>2022-05-20 04:01:50 -0400
commit6763fd3b4bf0e752b9be954377edcf548b444850 (patch)
treee80f9d6f4b403b51a8666ea2d3bf9e8ea2513d90
parenta39ec76340ede441059739cdc10367e4bb956501 (diff)
downloadSponsorBlock-6763fd3b4bf0e752b9be954377edcf548b444850.tar.gz
SponsorBlock-6763fd3b4bf0e752b9be954377edcf548b444850.zip
Allow more channel IDs
Help with #753
-rw-r--r--src/content.ts2
1 files changed, 1 insertions, 1 deletions
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);