你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/535135-show-autoplay-button-on-youtube,源站連結 點此以跳轉。
Forces YouTube autoplay toggle to be visible
This userscript ensures that the Autoplay toggle button on YouTube remains visible at all times by forcing its display via a CSS rule.
YouTube sometimes hides the Autoplay toggle depending on screen size, playback context, or internal UI updates. This script ensures the element with aria-label~="Autoplay" is always displayed.
[aria-label~="Autoplay"] to use display: inline !important.document-start) for maximum consistency.<style> element containing the CSS rule is injected into the document <head>.MutationObserver monitors DOM changes and ensures the CSS persists through YouTube's single-page navigation system.data-autoplay-fix attribute to prevent multiple injections.aria-label for the autoplay button (e.g., localizing it or renaming it), you may need to update the selector.