diff --git a/src/content.ts b/src/content.ts index 6d8ae79b..0feb3e61 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1598,18 +1598,6 @@ function updateAdFlag() { } } -function formatTime(seconds) { - if(isNaN(seconds)) return - const h = Math.floor(seconds / 3600); - const m = Math.floor((seconds % 3600) / 60); - const s = Math.round(seconds % 60); - return [ - h, - m > 9 ? m : (h ? '0' + m : m || '0'), - s > 9 ? s : '0' + s - ].filter(Boolean).join(':'); -} - function showTimeWithoutSkips(allSponsorTimes): void { let skipDuration = 0;