aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-05-24 03:20:21 -0400
committerAjay <[email protected]>2024-05-24 03:20:21 -0400
commit0dbb6474b841e6ad49616f0b28e4a0668fa2e7fe (patch)
tree396959e2675238de05b42389e0a102605affcee9
parentc974c2a6d66ba1313a62201b8574006b15eb3b3c (diff)
downloadSponsorBlock-0dbb6474b841e6ad49616f0b28e4a0668fa2e7fe.tar.gz
SponsorBlock-0dbb6474b841e6ad49616f0b28e4a0668fa2e7fe.zip
Fix preview bar on mobile
Fixes #2021
-rw-r--r--src/content.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/content.ts b/src/content.ts
index 4098d8fe..873c52dc 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -511,6 +511,10 @@ function getPreviewBarAttachElement(): HTMLElement | null {
selector: ".YtProgressBarProgressBarLine",
isVisibleCheck: true
}, {
+ // For newer mobile YouTube (May 2024)
+ selector: ".YtmProgressBarProgressBarLine",
+ isVisibleCheck: true
+ }, {
// For desktop YouTube hover play
// Priority is given to the hover play progress bar over the main progress bar
// for miniplayer + hover preview case