mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2026-03-28 16:49:20 +03:00
Merge pull request #1314 from mchangrh/mobileChapters
add selector for mobile YT chapters
This commit is contained in:
@@ -394,6 +394,8 @@ function createPreviewBar(): void {
|
||||
const progressElementSelectors = [
|
||||
// For mobile YouTube
|
||||
".progress-bar-background",
|
||||
// for new mobile YouTube (#1287)
|
||||
".ytm-progress-bar",
|
||||
// For YouTube
|
||||
".ytp-progress-bar-container",
|
||||
".no-model.cue-range-markers",
|
||||
|
||||
@@ -144,8 +144,10 @@ class PreviewBar {
|
||||
this.parent = parent;
|
||||
|
||||
if (this.onMobileYouTube) {
|
||||
parent.style.backgroundColor = "rgba(255, 255, 255, 0.3)";
|
||||
parent.style.opacity = "1";
|
||||
if (parent.classList.contains("progress-bar-background")) {
|
||||
parent.style.backgroundColor = "rgba(255, 255, 255, 0.3)";
|
||||
parent.style.opacity = "1";
|
||||
}
|
||||
|
||||
this.container.style.transform = "none";
|
||||
} else if (!this.onInvidious) {
|
||||
|
||||
Reference in New Issue
Block a user