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.

Tässä ovat skriptin kaikki versiot. Näytä vain versiot, joissa koodi muuttui.

  • v1.7.0 24.3.2018 In some browsers (perhaps only Google Chrome), they have now added a 3rd button to YouTube's menu bar; a "Camera with a plus" icon. This update now ensures we can find the settings menu on both 2-button and 3-button bars, so that the automatic dark mode works in YouTube in all browsers again.
  • v1.6.4 17.11.2017 Show a warning to people who are on YouTube's old theme (which doesn't HAVE any dark mode!). This is to avoid "error reports" by people who aren't even on YouTube's new theme.
  • v1.6.3 7.11.2017 Switch function declaration style
  • v1.6.2 7.11.2017 Updated to latest support-libraries, and switched to an even more reliable menu button selector
  • v1.6.1 7.11.2017 Increased element search max timeout from 2 seconds to 6 seconds
  • v1.6.0 7.11.2017 Updated to YouTube's new element name for the Settings-menu button
  • v1.5.0 5.11.2017 Updated dark mode detection since YouTube has changed their site
  • v1.4 21.9.2017
  • v1.4 14.9.2017 Now supports switching theme even when you're logged in to a YouTube account! I never log in so I had no idea that the menus were different. ;-)
  • v1.3 13.9.2017 Rewrote all code to make the theme switching as fast as your browser/YouTube is capable of! The theme-settings menu is now barely visible before it's closed again. :-)
  • v1.2 13.9.2017 Now focuses the search-field after switching to the dark theme, for easier typing
  • v1.1 5.9.2017 Improved the YouTube menu-detection method to a new one that retries when necessary
  • v1.0 5.9.2017