From c8c141f5c9f0082863d9c3304c0cad17fe394b84 Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 18 Oct 2023 12:13:11 -0400 Subject: Round end time when skipping on firefox if close Fix #1883 --- src/content.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/content.ts b/src/content.ts index 0d5cc33a..de537005 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1660,6 +1660,9 @@ function skipToTime({v, skipTime, skippingSegments, openNotice, forceAutoSkip, u // MacOS will loop otherwise #1027 // Sometimes playlists loop too #1804 v.currentTime = v.duration - 0.001; + } else if (v.duration > 1 && Math.abs(skipTime[1] - v.duration) < 0.5 + && isFirefoxOrSafari() && !isSafari()) { + v.currentTime = v.duration; } else { if (inMuteSegment(skipTime[1], true)) { // Make sure not to mute if skipping into a mute segment -- cgit v1.2.3