你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/19120-youtube-remaining-time/discussions/91626,源站連結 點此以跳轉。
Show the remaining time of a YouTube video inside the player.
< 脚本 YouTube Remaining Time 的反馈
Correction for divideTime():
divideTime()
With SHOW_REAL_TIME_REMAINING on, the minute value is often wrong for long videos. You already use the % modulo operator on the seconds property. But it must also be used on minutes and hours, like so:
SHOW_REAL_TIME_REMAINING
%
seconds
minutes
hours
hours: Math.floor(newTimeSeconds / (60 * 60)) % 24, minutes: Math.floor(newTimeSeconds / 60) % 60,
You can use this test video (10 hours long): https://www.youtube.com/watch?v=L_LUpnjgPso
Without this change, with playback speed 1x, only the minute value is wrong. With playback speed 0.25x, the hour value is also wrong.
登录以发布留言。
Correction for
divideTime():With
SHOW_REAL_TIME_REMAININGon, the minute value is often wrong for long videos. You already use the%modulo operator on thesecondsproperty. But it must also be used onminutesandhours, like so:You can use this test video (10 hours long): https://www.youtube.com/watch?v=L_LUpnjgPso
Without this change, with playback speed 1x, only the minute value is wrong. With playback speed 0.25x, the hour value is also wrong.