diff options
author | Ajay <[email protected]> | 2024-12-13 03:10:17 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2024-12-13 03:10:17 -0500 |
commit | 975b876a741389d9622d9861366b4e16f62f394a (patch) | |
tree | 5d988a1a194e36dc5a378a5c08ea2cca571b4412 /src/content.ts | |
parent | 557e2ea2df07f5fe53e458aa122c2a201be47d4c (diff) | |
download | SponsorBlock-975b876a741389d9622d9861366b4e16f62f394a.tar.gz SponsorBlock-975b876a741389d9622d9861366b4e16f62f394a.zip |
Fix preview bar on mobile
Fixes #2172
Diffstat (limited to 'src/content.ts')
-rw-r--r-- | src/content.ts | 4 |
1 files 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; |