From 933babb4e65f7cbef1a15635b9a81ba52a259c96 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 17 Feb 2020 11:32:00 -0500 Subject: [PATCH] Added mobile YouTube site to the whitelist. --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 8ebc3121..2241639f 100644 --- a/src/content.ts +++ b/src/content.ts @@ -499,7 +499,7 @@ function getYouTubeVideoID(url: string) { // Check if valid hostname if (Config.config && Config.config.invidiousInstances.includes(urlObject.host)) { onInvidious = true; - } else if (!["www.youtube.com", "www.youtube-nocookie.com"].includes(urlObject.host)) { + } else if (!["m.youtube.com", "www.youtube.com", "www.youtube-nocookie.com"].includes(urlObject.host)) { if (!Config.config) { // Call this later, in case this is an Invidious tab utils.wait(() => Config.config !== null).then(() => videoIDChange(getYouTubeVideoID(url)));