Only show unlisted warning when there are no segments

This commit is contained in:
Ajay Ramachandran
2021-06-24 13:14:47 -04:00
parent a2c0c3f79e
commit ef435daf6d
2 changed files with 2 additions and 2 deletions

View File

@@ -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"),