diff options
author | Ajay <[email protected]> | 2024-10-01 23:12:56 -0400 |
---|---|---|
committer | Ajay <[email protected]> | 2024-10-01 23:12:56 -0400 |
commit | 5cdbc233e483c5b0b2275d5c32a29cbb89aacc61 (patch) | |
tree | 538a845b53e9e8ef6bea62a43fe5ee89c44ad671 | |
parent | 86f8809de7286ccea2c8de76bed7ac1a90f217ea (diff) | |
download | SponsorBlock-5cdbc233e483c5b0b2275d5c32a29cbb89aacc61.tar.gz SponsorBlock-5cdbc233e483c5b0b2275d5c32a29cbb89aacc61.zip |
Fix time without skips on mobile
-rw-r--r-- | src/content.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index b4d16964..0391bd28 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2649,7 +2649,12 @@ function showTimeWithoutSkips(skippedDuration: number): void { duration = document.createElement('span'); duration.id = durationID; - display.appendChild(duration); + if (isOnMobileYouTube()) { + duration.style.paddingLeft = "4px"; + display.insertBefore(duration, display.lastChild); + } else { + display.appendChild(duration); + } } const durationAfterSkips = getFormattedTime(getVideoDuration() - skippedDuration); |