aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-06-24 13:29:28 -0400
committerGitHub <[email protected]>2021-06-24 13:29:28 -0400
commitc1a65a33835142076d92384def1d1da132a810b0 (patch)
tree6b2653c6d12680da096358d3308139bc640c433b
parente54ad07901b9017e771a35a40e236a726f9d6a07 (diff)
parentc3b82e7aa7917cc3ab183cdd22b0ddf0792fccf5 (diff)
downloadSponsorBlock-c1a65a33835142076d92384def1d1da132a810b0.tar.gz
SponsorBlock-c1a65a33835142076d92384def1d1da132a810b0.zip
Merge pull request #807 from ajayyy/unlisted-hotfix
Only show unlisted warning when there are no segments
-rw-r--r--manifest/manifest.json1
-rw-r--r--src/content.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/manifest/manifest.json b/manifest/manifest.json
index 4e8105dd..7b920dd3 100644
--- a/manifest/manifest.json
+++ b/manifest/manifest.json
@@ -1,7 +1,6 @@
{
"name": "__MSG_fullName__",
"short_name": "SponsorBlock",
- "version": "2.1.0.2",
"version": "2.1.1",
"default_locale": "en",
"description": "__MSG_Description__",
diff --git a/src/content.ts b/src/content.ts
index be48503b..362eaec5 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -885,7 +885,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"),