From 28096e1ba669f980b77684bcccef22755d59420d Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 17 Aug 2021 21:45:30 -0400 Subject: [PATCH] Don't show multiple skip notices after skipping highlight --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 96fb35a6..c1f1a9c7 100644 --- a/src/content.ts +++ b/src/content.ts @@ -572,7 +572,7 @@ function setupVideoListeners() { utils.getCategoryActionType(segment.category) === CategoryActionType.POI && video.currentTime - segment.segment[0] > 0 && video.currentTime - segment.segment[0] < video.duration * 0.006); // Approximate size on preview bar - if (currentPoiSegment) { + if (currentPoiSegment && !skipNotices.some((notice) => notice.segments.some((s) => s.UUID === currentPoiSegment.UUID))) { skipToTime({ v: video, skipTime: currentPoiSegment.segment,