Greasy Fork 还支持 简体中文。
Stick YouTube video progress bar to the player bottom
Dette er versjoner av dette scriptet hvor koden ble oppdatert. Vis alle versjoner.
fix: rewrite stick-progress-bar with clean re-init on navigation
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
fix: replace innerHTML with textContent to satisfy CSP Trusted Types
fix: video undefined randomly
fix: script not working randomly
fix: prevent DOMException when accessing video buffered range
fix: video become undefined randomly
fix: livestream check, reuse created components and add clearInterval before initializing
fix: can't use timeupdate event on youtube, use setInterval to update progress bar instead
Fix the logic to determine whether the initialization is needed.
Fix issue that script not loaded when navigate in YouTube
bug fix
Use IIFE
Fix issue that load progress bar doesn't show up
Fix progress bar misalignment when video chapter is enabled
Fix the identification criteria for live stream page.