mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-14 07:27:05 +03:00
@@ -511,7 +511,7 @@ function handleMobileControlsMutations(): void {
|
|||||||
function getPreviewBarAttachElement(): HTMLElement | null {
|
function getPreviewBarAttachElement(): HTMLElement | null {
|
||||||
const progressElementOptions = [{
|
const progressElementOptions = [{
|
||||||
// For newer mobile YouTube (Sept 2024)
|
// For newer mobile YouTube (Sept 2024)
|
||||||
selector: ".YtChapteredProgressBarHost",
|
selector: ".YtProgressBarLineHost, .YtChapteredProgressBarHost",
|
||||||
isVisibleCheck: true
|
isVisibleCheck: true
|
||||||
}, {
|
}, {
|
||||||
// For newer mobile YouTube (May 2024)
|
// For newer mobile YouTube (May 2024)
|
||||||
@@ -2636,7 +2636,7 @@ function showTimeWithoutSkips(skippedDuration: number): void {
|
|||||||
// YouTube player time display
|
// YouTube player time display
|
||||||
const selector =
|
const selector =
|
||||||
isOnInvidious() ? ".vjs-duration" :
|
isOnInvidious() ? ".vjs-duration" :
|
||||||
isOnMobileYouTube() ? ".ytm-time-display" :
|
isOnMobileYouTube() ? ".YtwPlayerTimeDisplayContent" :
|
||||||
".ytp-time-display.notranslate .ytp-time-wrapper";
|
".ytp-time-display.notranslate .ytp-time-wrapper";
|
||||||
const display = document.querySelector(selector);
|
const display = document.querySelector(selector);
|
||||||
if (!display) return;
|
if (!display) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user