diff --git a/public/_locales b/public/_locales index 5ca124d1..2b3c82bf 160000 --- a/public/_locales +++ b/public/_locales @@ -1 +1 @@ -Subproject commit 5ca124d1217f93b8d2100ca088bf718cf19ee60d +Subproject commit 2b3c82bfc72f0dc46d7b944449a994a597b817c0 diff --git a/src/content.ts b/src/content.ts index 565559dd..49e09dd1 100644 --- a/src/content.ts +++ b/src/content.ts @@ -240,7 +240,8 @@ function messageListener(request: Message, sender: unknown, sendResponse: (respo break; case "getChannelID": sendResponse({ - channelID: getChannelIDInfo().id + channelID: getChannelIDInfo().id, + isYTTV: (document.location.host === "tv.youtube.com") }); break; diff --git a/src/messageTypes.ts b/src/messageTypes.ts index 6b9f3225..5241348d 100644 --- a/src/messageTypes.ts +++ b/src/messageTypes.ts @@ -86,6 +86,7 @@ interface GetVideoIdResponse { export interface GetChannelIDResponse { channelID: string; + isYTTV: boolean; } export interface SponsorStartResponse { diff --git a/src/popup.ts b/src/popup.ts index b20723a2..f73a45f2 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -917,7 +917,11 @@ async function runThePopup(messageListener?: MessageListener): Promise { //get the channel url const response = await sendTabMessageAsync({ message: 'getChannelID' }) as GetChannelIDResponse; if (!response.channelID) { - alert(chrome.i18n.getMessage("channelDataNotFound") + " https://github.com/ajayyy/SponsorBlock/issues/753"); + if (response.isYTTV) { + alert(chrome.i18n.getMessage("yttvNoChannelWhitelist")); + } else { + alert(chrome.i18n.getMessage("channelDataNotFound") + " https://github.com/ajayyy/SponsorBlock/issues/753"); + } return; }