Greasy Fork is available in English.

Roblox Force Dark Theme

Always forces Roblox to use the Dark theme

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey 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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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         Roblox Force Dark Theme
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Always forces Roblox to use the Dark theme
// @author       Fidelity
// @match        https://www.roblox.com/*
// @icon         https://img.icons8.com/?size=100&id=101343&format=png&color=FFFFFF
// @license      MIT
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function () {
    function SetDarkMode() {
        localStorage.setItem('theme', `{"version":0,"data":[[${document.querySelector('meta[name="user-data"]').dataset.userid},1]]}`);
        document.documentElement.classList.add('dark-theme');
        if (document.body) {
            document.body.classList.remove('system-theme');
            document.body.classList.remove('light-theme');
            document.body.classList.add('dark-theme');
        }
    }

    SetDarkMode();
    document.addEventListener('DOMContentLoaded', SetDarkMode);

    new MutationObserver(() => {
        const el = document.body || document.documentElement;
        if (!el.classList.contains('dark-theme')) {
            SetDarkMode();
        }
    }).observe(document.documentElement, {
        attributes: true,
        attributeFilter: ['class'],
        subtree: true
    });
})();