aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts
index 9b824001..7a74ddc3 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -1574,6 +1574,8 @@ function updateAdFlag() {
}
function showTimeWithoutSkips(allSponsorTimes): void {
+ if (onMobileYouTube || onInvidious) return;
+
let skipDuration = 0;
// Calculate skipDuration based from the segments in the preview bar
@@ -1587,7 +1589,7 @@ function showTimeWithoutSkips(allSponsorTimes): void {
// YouTube player time display
let display = document.getElementsByClassName("ytp-time-display notranslate")[0];
- if (display === undefined) return
+ if (!display) return;
let formatedTime = utils.getFormattedTime(video.duration - skipDuration);