aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-06-24 13:14:47 -0400
committerAjay Ramachandran <[email protected]>2021-06-24 13:14:47 -0400
commitef435daf6dc3b7a0f6531b31686eeae1e5ba56c2 (patch)
tree4ee239c89f240eacb6fdcc7cdeaee7b98f131f51
parenta2c0c3f79e3c5e07cc7fd961cbca003b9979102d (diff)
downloadSponsorBlock-ef435daf6dc3b7a0f6531b31686eeae1e5ba56c2.tar.gz
SponsorBlock-ef435daf6dc3b7a0f6531b31686eeae1e5ba56c2.zip
Only show unlisted warning when there are no segments
-rw-r--r--manifest/manifest.json2
-rw-r--r--src/content.ts2
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"),