mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 12:37:05 +03:00
@@ -512,12 +512,8 @@ function handleMobileControlsMutations(): void {
|
|||||||
|
|
||||||
function getPreviewBarAttachElement(): HTMLElement | null {
|
function getPreviewBarAttachElement(): HTMLElement | null {
|
||||||
const progressElementOptions = [{
|
const progressElementOptions = [{
|
||||||
// For new mobile YouTube (#1287)
|
// For newer mobile YouTube (Sept 2024)
|
||||||
selector: ".progress-bar-line",
|
selector: ".YtChapteredProgressBarHost",
|
||||||
isVisibleCheck: true
|
|
||||||
}, {
|
|
||||||
// For newer mobile YouTube (Jan 2024)
|
|
||||||
selector: ".YtProgressBarProgressBarLine",
|
|
||||||
isVisibleCheck: true
|
isVisibleCheck: true
|
||||||
}, {
|
}, {
|
||||||
// For newer mobile YouTube (May 2024)
|
// For newer mobile YouTube (May 2024)
|
||||||
|
|||||||
@@ -197,7 +197,6 @@ class PreviewBar {
|
|||||||
|
|
||||||
if (this.onMobileYouTube) {
|
if (this.onMobileYouTube) {
|
||||||
this.container.style.transform = "none";
|
this.container.style.transform = "none";
|
||||||
this.container.style.height = "var(--yt-progress-bar-height)";
|
|
||||||
} else if (!this.onInvidious) {
|
} else if (!this.onInvidious) {
|
||||||
this.container.classList.add("sbNotInvidious");
|
this.container.classList.add("sbNotInvidious");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user