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的回應

提問/評論

§
發表於:2019-10-02

THANK YOU for finding a way!

I've tried, myself, to decipher the youtube DOM objects and do a .click() on the right ones, and I never got it to work. Looking briefly through your code, the thought impresses itself upon me that I have so dreadfully much to learn about JS. Thank you for finding a way to persist the inexplicably amnesiac Dark Theme!

To anyone who has trouble getting this to work: get TamperMonkey for Chrome or Firefox, install this script, and make sure the script is enabled. (Also make sure TamperMonkey itself is enabled!) Given those few prerequisites are met, you should have no problem.

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址