From e7f4be2d57d94b6e0593aaff7449593cf69ff7c5 Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 21 Feb 2024 14:32:44 -0500 Subject: Don't require preview for starting segments --- src/content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 8413b76b..504ba8d5 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2278,7 +2278,8 @@ async function sendSubmitMessage(): Promise { if (!previewedSegment && !sponsorTimesSubmitting.every((segment) => [ActionType.Full, ActionType.Chapter, ActionType.Poi].includes(segment.actionType) - || segment.segment[1] >= getVideo()?.duration)) { + || segment.segment[1] >= getVideo()?.duration + || segment.segment[0] === 0)) { alert(`${chrome.i18n.getMessage("previewSegmentRequired")} ${keybindToString(Config.config.previewKeybind)}`); return false; } -- cgit v1.2.3