mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-13 23:17:05 +03:00
Only show unlisted warning when there are no segments
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "__MSG_fullName__",
|
"name": "__MSG_fullName__",
|
||||||
"short_name": "SponsorBlock",
|
"short_name": "SponsorBlock",
|
||||||
"version": "2.1.0.2",
|
"version": "2.1.0.3",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"description": "__MSG_Description__",
|
"description": "__MSG_Description__",
|
||||||
"content_scripts": [{
|
"content_scripts": [{
|
||||||
|
|||||||
@@ -884,7 +884,7 @@ async function unlistedCheck() {
|
|||||||
const views = parseInt(videoInfo?.videoDetails?.viewCount);
|
const views = parseInt(videoInfo?.videoDetails?.viewCount);
|
||||||
const isHighViews = views > 15000;
|
const isHighViews = views > 15000;
|
||||||
|
|
||||||
if (isUnlisted && isOld && isHighViews) {
|
if (isUnlisted && isOld && isHighViews && (!sponsorTimes || sponsorTimes.length <= 0)) {
|
||||||
// Ask if they want to submit this videoID
|
// Ask if they want to submit this videoID
|
||||||
const notice = new GenericNotice(skipNoticeContentContainer, "unlistedWarning", {
|
const notice = new GenericNotice(skipNoticeContentContainer, "unlistedWarning", {
|
||||||
title: chrome.i18n.getMessage("experimentUnlistedTitle"),
|
title: chrome.i18n.getMessage("experimentUnlistedTitle"),
|
||||||
|
|||||||
Reference in New Issue
Block a user