aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-10-01 23:14:12 -0400
committerAjay <[email protected]>2024-10-01 23:14:12 -0400
commit3c2c140eb53e379384113806f5a618f1c8f72168 (patch)
tree41f416db785ffea256ef022a5803dd5470c9e745
parent5cdbc233e483c5b0b2275d5c32a29cbb89aacc61 (diff)
downloadSponsorBlock-3c2c140eb53e379384113806f5a618f1c8f72168.tar.gz
SponsorBlock-3c2c140eb53e379384113806f5a618f1c8f72168.zip
Fix preview bar on mobile
Fixes #2116
-rw-r--r--src/content.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content.ts b/src/content.ts
index 0391bd28..3596a70d 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -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)
@@ -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;