A low-tech solution to a high-tech problem! Automatically clicks YouTube's "Dark Mode" button if dark mode isn't already active.
< Spätná väzba na 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
Aby ste mohli pridať odpoveď, prihláste sa.
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.