From ec2950786fbc714a39474423f13060e863dd5c0e Mon Sep 17 00:00:00 2001 From: NDevTK <31563761+NDevTK@users.noreply.github.com> Date: Mon, 29 Jun 2020 17:52:28 +0100 Subject: [PATCH] Skip if skipDuration is 0 --- src/content.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content.ts b/src/content.ts index 1e324d6f..f6c39de1 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1622,6 +1622,8 @@ function hideSponsorTime(barTimes) { skipDuration += time.segment[1] - time.segment[0]; } + if(skipDuration === 0) return + let display = document.getElementsByClassName("ytp-time-display notranslate")[0]; if (display === undefined) return