Greasy Fork is available in English.

Rainbow Theme V2

crappy edits but oh well https://github.com/haykam821/Diep.io-Rainbow-Fade

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Rainbow Theme V2
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  crappy edits but oh well https://github.com/haykam821/Diep.io-Rainbow-Fade
// @author       haykam821 (edited by endless)
// @match        *://diep.io/
// @grant        none
// ==/UserScript==

'use strict';

(() => {
	const script = document.createElement("script");
	script.src = "https://cdnjs.cloudflare.com/ajax/libs/chroma-js/1.3.7/chroma.min.js";
	document.head.append(script);

    script.addEventListener('load', () => {
        const colors = chroma.scale(['red', 'orange', 'yellow', 'lime', 'cyan', 'mediumpurple', 'red']).colors(1000);
        let index = 0;

        setInterval(() => {
            index += 1;
            if (index > colors.length) index = 0;

            const scale = "0x" + colors[index].substr(1, Infinity)
            const black = [ 0, 1, 2, 8, 9, 10, 11, 12, 13, 14, 16, 17 ]

            black.forEach(function(i) {
                input.execute(`net_replace_color ${i} 0x000000`);
            })

            black.splice(0, black.length, ...[
                'ren_score_bar_fill_color',
                'ren_xp_bar_fill_color',
                'ren_health_fill_color',
                'ren_background_color'
            ])

            black.forEach(function(i) {
                input.execute(i + ' 0x000000');
            });

            input.set_convar(`ren_stroke_soft_color`, false);
            input.set_convar(`ren_raw_health_values`, true);
            input.execute(`ren_border_color 0xc7c7c7`);

            var rainbow = [
                'net_replace_color 15',
                'ren_stroke_solid_color',
                'ren_bar_background_color',
                'ren_health_background_color',
                'ren_minimap_background_color'
            ];

            rainbow.forEach(function(i) {
                input.execute(i + ' ' + scale);
            });

            input.execute(`ui_replace_colors` + ` ${scale}`.repeat(8));
        });
    });
})();