Skip if skipDuration is 0

This commit is contained in:
NDevTK
2020-06-29 17:52:28 +01:00
committed by GitHub
parent fd77748b15
commit ec2950786f

View File

@@ -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