From ef435daf6dc3b7a0f6531b31686eeae1e5ba56c2 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 24 Jun 2021 13:14:47 -0400 Subject: [PATCH] Only show unlisted warning when there are no segments --- manifest/manifest.json | 2 +- src/content.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest/manifest.json b/manifest/manifest.json index 4ca2ae37..11b561be 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_fullName__", "short_name": "SponsorBlock", - "version": "2.1.0.2", + "version": "2.1.0.3", "default_locale": "en", "description": "__MSG_Description__", "content_scripts": [{ diff --git a/src/content.ts b/src/content.ts index aaf79e62..9e495485 100644 --- a/src/content.ts +++ b/src/content.ts @@ -884,7 +884,7 @@ async function unlistedCheck() { const views = parseInt(videoInfo?.videoDetails?.viewCount); const isHighViews = views > 15000; - if (isUnlisted && isOld && isHighViews) { + if (isUnlisted && isOld && isHighViews && (!sponsorTimes || sponsorTimes.length <= 0)) { // Ask if they want to submit this videoID const notice = new GenericNotice(skipNoticeContentContainer, "unlistedWarning", { title: chrome.i18n.getMessage("experimentUnlistedTitle"),