Greasy Fork is available in English.
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
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.
yt-formatted-string
innerHTML
Sign in to post a reply.
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.