Skip to content

Commit

Permalink
Fix time without skips on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Oct 2, 2024
1 parent 86f8809 commit 5cdbc23
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5cdbc23

Please sign in to comment.