Stick YouTube Progress Bar

Stick YouTube video progress bar to the player bottom

这些是此脚本变更过代码的版本。 显示所有版本。

  • v1.0.18 2026-05-08

    fix: rewrite stick-progress-bar with clean re-init on navigation

  • v1.0.16 2026-05-08

    fix: patch null crash, NaN guard, buffer seek, ad skip, premiere detection

    - video undefined after re-render now returns early instead of throwing every 500ms
    - guard against NaN/0 duration before computing scaleX
    - buffer bar now tracks the buffered range containing currentTime, not always end(0)
    - skip interval update during ads (.ad-showing)
    - replace ytp-live-badge check with duration === Infinity for accurate premiere support
    - call main() on script load to catch direct /watch URL visits
    - fix observe() ignoring its dom parameter
    - rename internal → interval; fix intitailized/cancaled typos

  • v1.0.15 2026-02-26

    fix: replace innerHTML with textContent to satisfy CSP Trusted Types

  • v1.0.14 2026-01-27

    fix: video undefined randomly

  • v1.0.13 2025-01-29

    fix: script not working randomly

  • v1.0.12 2025-01-29

    fix: prevent DOMException when accessing video buffered range

  • v1.0.11 2025-01-29

    fix: video become undefined randomly

  • v1.0.9 2023-11-18

    fix: livestream check, reuse created components and add clearInterval before initializing

  • v1.0.8 2023-11-18

    fix: can't use timeupdate event on youtube, use setInterval to update progress bar instead

  • v1.0.7 2023-05-16

    Fix the logic to determine whether the initialization is needed.

  • v1.0.6 2023-05-16

    Fix issue that script not loaded when navigate in YouTube

  • v1.0.5 2023-05-16

    bug fix

  • v1.0.4 2023-05-16

    Use IIFE

  • v1.0.3 2023-05-16

    Fix issue that load progress bar doesn't show up

  • v1.0.2 2023-05-16

    Fix progress bar misalignment when video chapter is enabled

  • v1.0.1 2023-05-15

    Fix the identification criteria for live stream page.

  • v1.0.0 2023-05-15