diff options
author | Ajay Ramachandran <[email protected]> | 2021-06-24 13:14:47 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-06-24 13:14:47 -0400 |
commit | ef435daf6dc3b7a0f6531b31686eeae1e5ba56c2 (patch) | |
tree | 4ee239c89f240eacb6fdcc7cdeaee7b98f131f51 | |
parent | a2c0c3f79e3c5e07cc7fd961cbca003b9979102d (diff) | |
download | SponsorBlock-ef435daf6dc3b7a0f6531b31686eeae1e5ba56c2.tar.gz SponsorBlock-ef435daf6dc3b7a0f6531b31686eeae1e5ba56c2.zip |
Only show unlisted warning when there are no segments
-rw-r--r-- | manifest/manifest.json | 2 | ||||
-rw-r--r-- | 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"), |