🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

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.

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Necesitará instalar una extensión como Tampermonkey para instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Autor
SteveJobzniak
Instalaciones diarias
0
Instalaciones totales
4,149
Calificaciones
21 2 1
Versión
1.7.0
Creado
05/09/2017
Actualizado
24/03/2018
Tamaño
10.4 KB
Licencia
https://www.apache.org/licenses/LICENSE-2.0
Funciona en

What is this?

A low-tech solution to a high-tech problem! Automatically clicks YouTube's "Dark Mode" button if dark mode isn't already active.

You must already have YouTube's material theme (you can opt-in at http://youtube.com/new). This script automates the job of enabling "Dark Mode" when necessary.

Why!?

Every time I reset my browser's cache/cookies, I was faced with a white YouTube theme again, and I was tired of switching to Dark Mode manually. This script automates it in a pretty funny way: It automatically opens the Settings menu and clicks the Dark Mode button. Why such a low-tech solution? Because YouTube's page is very advanced and doesn't easily allow 3rd party scripts to switch its settings. There is a more advanced technique commented-out in this code, which actually uses YouTube's internal Event system to signal the change, but I disabled that code because it was much less reliable than the low-tech solution. It's still in this script's source code if anyone is curious, though.

This script is fully compatible with my similar script, Automatic Privacy Reminder Killer for YouTube.

Donate a beer?

Totally optional. ;-)

  • Paypal Paypal: Donate
  • btc Bitcoin: 18XF1EmrkpYi4fqkR2XcHkcJxuTMYG4bcv

Future compatibility?

The script hardcodes the name and location of the menu items it clicks, so there's a very big chance that it'll stop working within a few years (whenever YouTube changes their design again). If it breaks, do NOT freak out and blast this page with negative reviews. Instead, be patient and wait while I update it when I have time. If you ungratefully blast me with negative reviews due to YouTube suddenly changing their design (which isn't my fault), then I won't bother updating this script for you at all.

Enjoy! ;-)