Skip to content

Commit

Permalink
Fix preview bar on mobile
Browse files Browse the repository at this point in the history
Fixes #2116
  • Loading branch information
ajayyy committed Oct 2, 2024
1 parent 5cdbc23 commit 3c2c140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ function handleMobileControlsMutations(): void {
function getPreviewBarAttachElement(): HTMLElement | null {
const progressElementOptions = [{
// For newer mobile YouTube (Sept 2024)
selector: ".YtChapteredProgressBarHost",
selector: ".YtProgressBarLineHost, .YtChapteredProgressBarHost",
isVisibleCheck: true
}, {
// For newer mobile YouTube (May 2024)
Expand Down Expand Up @@ -2636,7 +2636,7 @@ function showTimeWithoutSkips(skippedDuration: number): void {
// YouTube player time display
const selector =
isOnInvidious() ? ".vjs-duration" :
isOnMobileYouTube() ? ".ytm-time-display" :
isOnMobileYouTube() ? ".YtwPlayerTimeDisplayContent" :
".ytp-time-display.notranslate .ytp-time-wrapper";
const display = document.querySelector(selector);
if (!display) return;
Expand Down

0 comments on commit 3c2c140

Please sign in to comment.