A light, dark theme for YouTube with easy toggle on and off and scheduling support. This theme is based on the default YouTube theme

Latest Version

Version
0.4.1
Update
December 26, 2022
Size
86.58KiB
Developer
Category
Users
70,000+
Rating
4.20548 ★
Manifest Version
3
Web Store Status
Languages Support
Deutsch
English
Français
Nederlands
Dansk
Eesti
Italiano
Magyar
Suomi
čeština
Ελληνικά
български
中文 (简体)
日本語
See more
Permissions
Storage
Cookies
Alarms
Idle
See more

YouTube Dark Theme Extension

\"Dark Theme for YouTube\" extension converts YouTube theme to a highly customizable dark charcoal/blue theme. This extension is built on top of the default YouTube theme (native dark theme) so it is very light-weighted compare to using themes injected by Stylish or Stylus extensions.

Features:
Turn on and off from the action button to switch between light and dark themes
Accepts scheduling to turn on only on the specified period
Customize default color scheme
Inject custom CSS to alter the default theme (change font-size or font-family for instance)

How does this extension work?
This extension alters a cookie globally to turn the dark theme on and off. It also injects a lite script to the YouTube pages to alter the color scheme of the root element. In oppose to the other similar extensions, there is no resetting of the default theme or inverting the white theme with an inversion filter. Both of these methods are computationally inefficient. Instead, this extension asks YouTube to turn the native dark theme and only alter the global CSS variables to alter the colors.
Note that this method only works if the product supports native coloring. Some Google products do not yet support this feature.

Privacy Policy:
This extension does not send or receive any data to any server whatsoever.

Bug Report:
Please either use the commenting section of the FAQs page or the GitHub page for bug reporting.

Change Log:
0.2.0
Use the built-in dark theme (Material Design only)
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "YouTube Dark Theme", "description": "__MSG_description__", "default_locale": "en", "version": "0.4.1", "manifest_version": 3, "permissions": [ "storage", "cookies", "alarms", "idle" ], "host_permissions": [ "*://*.youtube.com/*" ], "background": { "service_worker": "worker.js" }, "homepage_url": "https://add0n.com/dark-theme.html?from=youtube", "icons": { "16": "data/icons/16.png", "32": "data/icons/32.png", "48": "data/icons/48.png", "64": "data/icons/64.png", "128": "data/icons/128.png", "256": "data/icons/256.png", "512": "data/icons/512.png" }, "action": {}, "content_scripts": [{ "matches": ["*://*.youtube.com/*"], "js": ["data/inject.js"], "run_at": "document_start", "all_frames": true }], "options_ui": { "page": "data/options/index.html" }}
Read more