Dark Mode

it's a dark mode what did you expect

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Dark Mode
// @namespace    http://tampermonkey.net/
// @version      1.11
// @description  it's a dark mode what did you expect
// @author       lunatic3333
// @license      MIT
// @match        *https://diep.io/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @run-at       document-idle
// ==/UserScript==

(function() {
    const script = document.createElement('script');
    script.textContent = `
        const waitForInput = setInterval(() => {
            if (typeof input !== 'undefined') {
                clearInterval(waitForInput);

                input.execute("net_replace_colors 0xBFBFBF 0xBFBFBF 0x2C46A1 0x2C46A1 0x7D0015 0x47367C 0x175D4E 0x8F7E7E 0xBDA337 0xBD3737 0x3768BD 0x6E216C 0xFFE869 0x0073CF 0xA1A1A1 0x7D0015 0x216E36 0x216E36 0x215D6E");
                input.execute("ren_background_color 0x212121");
                input.execute("ren_grid_color 0xC0C0C0");
                input.execute("ren_xp_bar_fill_color 0xF0F0F0");
                input.execute("ren_score_bar_fill_color 0x1D3B87");
                input.execute("ren_health_background_color 0xBFBFBF");
                input.execute("ren_health_fill_color 0x088787");
                input.execute("ren_border_color 0xFEFEFE");
                input.execute("ren_raw_health_values true");
                input.execute("ui_replace_colors 0x009A9A 0x007E36 0x9B0000 0xC08F00 0x00418F 0x6B0091 0x8F0068 0xB7615B");
                input.execute("ren_fps true");
                input.execute("ren_bar_background_color 0x898989");
            }
        }, 500);
    `;
    document.head.appendChild(script);
})();