你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/32954-automatic-material-dark-mode-for-youtube/discussions/68256,源站連結 點此以跳轉

Automatic Material Dark-Mode for YouTube

A low-tech solution to a high-tech problem! Automatically clicks YouTube's "Dark Mode" button if dark mode isn't already active.

< 脚本 Automatic Material Dark-Mode for YouTube 的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发布于:2020-12-01
编辑于:2020-12-05

Just figured out that this piece of code

document.getElementsByTagName("html")[0].setAttribute("dark", "true");

makes the deal. And you can use:

document.getElementsByTagName("html")[0].removeAttribute("dark");

to switch back to white theme.

发布留言

登录以发布留言。