From 975b876a741389d9622d9861366b4e16f62f394a Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 13 Dec 2024 03:10:17 -0500 Subject: Fix preview bar on mobile Fixes #2172 --- src/content.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content.ts b/src/content.ts index 2639df8c..57b1b581 100644 --- a/src/content.ts +++ b/src/content.ts @@ -519,7 +519,7 @@ function handleMobileControlsMutations(): void { function getPreviewBarAttachElement(): HTMLElement | null { const progressElementOptions = [{ // For newer mobile YouTube (Sept 2024) - selector: ".YtProgressBarLineHost, .YtChapteredProgressBarHost", + selector: ".ytChapteredProgressBarHost, .YtProgressBarLineHost, .YtChapteredProgressBarHost", isVisibleCheck: true }, { // For newer mobile YouTube (May 2024) @@ -2694,7 +2694,7 @@ function showTimeWithoutSkips(skippedDuration: number): void { // YouTube player time display const selector = isOnInvidious() ? ".vjs-duration" : - isOnMobileYouTube() ? ".YtwPlayerTimeDisplayContent" : + isOnMobileYouTube() ? ".ytwPlayerTimeDisplayContent" : ".ytp-time-display.notranslate .ytp-time-wrapper"; const display = document.querySelector(selector); if (!display) return; -- cgit v1.2.3