Greasy Fork is available in English.

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.

< Feedback on Automatic Material Dark-Mode for YouTube

Review: Bad - script does not work

§
Posted: 05 April 2021
Edited: 05 April 2021

YouTube breakage with user script

Not quite sure how to edit this to fix it.

YouTube updated so now the Appearance menu has 3 clickable items. First item is now called "Use device theme".

Need to change behavior so user script finds yt-formatted-string element by text, "Dark theme", i.e. innerHTML instead of CSS selector to click on.

Post reply

Sign in to post a reply.