diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 3ec629a3..6a337fb8 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -381,12 +381,6 @@ "whatAutoUpvote": { "message": "With this enabled, the extension will upvote all submissions you view if you do not report them. If the notice is disabled, this will not occur." }, - "invidiousInfo1": { - "message": "Invidious (the 3rd party YouTube site) support has been added!" - }, - "invidiousInfo2": { - "message": "You MUST enable it in the options for it to work." - }, "minDuration": { "message": "Minimum duration (seconds):" }, @@ -431,5 +425,8 @@ }, "betaName": { "message": "BETA - SponsorBlock" + }, + "mobileUpdateInfo": { + "message": "m.youtube.com is now supported" } } diff --git a/src/background.ts b/src/background.ts index 89516287..62d0827e 100644 --- a/src/background.ts +++ b/src/background.ts @@ -86,9 +86,9 @@ chrome.runtime.onInstalled.addListener(function (object) { //save this UUID Config.config.userID = newUserID; - //TODO: Remove when invidious support is old + //TODO: Remove when mobile support is old // Don't show this to new users - Config.config.invidiousUpdateInfoShowCount = 6; + // Config.config.mobileUpdateShowCount = 1; } }, 1500); }); diff --git a/src/config.ts b/src/config.ts index c12e7f67..635fba55 100644 --- a/src/config.ts +++ b/src/config.ts @@ -20,12 +20,12 @@ interface SBConfig { hideDiscordLaunches: number, hideDiscordLink: boolean, invidiousInstances: string[], - invidiousUpdateInfoShowCount: number, autoUpvote: boolean, supportInvidious: boolean, serverAddress: string, minDuration: number, - checkForUnlistedVideos: boolean + checkForUnlistedVideos: boolean, + mobileUpdateShowCount: number } interface SBObject { @@ -116,12 +116,12 @@ var Config: SBObject = { hideDiscordLaunches: 0, hideDiscordLink: false, invidiousInstances: ["invidio.us", "invidiou.sh", "invidious.snopyta.org"], - invidiousUpdateInfoShowCount: 0, autoUpvote: true, supportInvidious: false, serverAddress: CompileConfig.serverAddress, minDuration: 0, - checkForUnlistedVideos: false + checkForUnlistedVideos: false, + mobileUpdateShowCount: 0 }, localConfig: null, config: null diff --git a/src/content.ts b/src/content.ts index d00f55bd..dcf8395f 100644 --- a/src/content.ts +++ b/src/content.ts @@ -819,8 +819,16 @@ function skipToTime(v, index, sponsorTimes, openNotice) { if (openNotice) { //send out the message saying that a sponsor message was skipped if (!Config.config.dontShowNotice) { + let skipNotice = new SkipNotice(this, currentUUID, Config.config.disableAutoSkip, skipNoticeContentContainer); + //TODO: Remove this when Mobile support is old + if (Config.config.mobileUpdateShowCount < 1) { + skipNotice.addNoticeInfoMessage(chrome.i18n.getMessage("mobileUpdateInfo")); + + Config.config.mobileUpdateShowCount += 1; + } + //auto-upvote this sponsor if (Config.config.trackViewCount && !Config.config.disableAutoSkip && Config.config.autoUpvote) { vote(1, currentUUID, null);