Auto Dark Mode

Automatically applies dark mode to all websites for better eye comfort at night.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Auto Dark Mode
// @namespace    https://itzmehuman000.github.io/
// @version      1.0
// @description  Automatically applies dark mode to all websites for better eye comfort at night.
// @author       DUSTIN
// @license      MIT
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    const style = document.createElement('style');
    style.textContent = `
        body, html {
            background-color: #121212 !important;
            color: #ffffff !important;
        }
        * {
            background: transparent !important;
            color: inherit !important;
        }
        a {
            color: #4A90E2 !important;
        }
    `;
    document.head.appendChild(style);
})();