PPlace Colour Fix (KKAR)

Kkar's FIX

Αυτός ο κώδικας δεν πρέπει να εγκατασταθεί άμεσα. Είναι μια βιβλιοθήκη για άλλους κώδικες που περιλαμβάνεται μέσω της οδηγίας meta // @require https://update.greasyfork.org/scripts/453151/1105463/PPlace%20Colour%20Fix%20%28KKAR%29.js

// ==UserScript==
// @name         PPlace Colour Fix (KKAR)
// @description  Kkar's FIX
// @version      1.69422
// @author       0vC4, Kkar, XMenko
// @namespace    https://greasyfork.org/users/670183
// @match        https://pixelplace.io/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=pixelplace.io
// @license      MIT
// @grant        none
// @run-at       document-start
// ==/UserScript==
(() => {
    const PPClient = window.PPClient || {smodules:{}};
    window.PPClient = PPClient;
    if ('Config' in PPClient.smodules) return;

    const smodule = {};
    smodule.zero = 0xCCCCCC;
    smodule.colors = new Uint32Array([0xFFFFFF,0xC4C4C4,0x888888,0x555555,0x222222,0x000000,0x003638,0x006600,0x22B14C,0x02BE01,0x51E119,0x94E044,0x98FB98,0xFBFF5B,0xE5D900,0xE6BE0C,0xE59500,0xCE2939,0xFF416A,0xFF7000,0xA06A42,0x99530D,0x633C1F,0x6B0000,0x9F0000,0xE50000,0xFF3904,0xBB4F00,0xFF755F,0xFFC49F,0xFFDFCC,0xFFA7D1,0xCF6EE4,0x7D26CD,0xEC08EC,0x820080,0x330077,0x020763,0x5100FF,0x020763,0x0000EA,0x044BFF,0x005BA1,0x6583CF,0x36BAFF,0x0083C7,0x00D3DD,0x45FFC8,0xB5E8EE,0xFF416A,0x477050,0x006600,0x003638,0x222222,0xFFDCFF,0xBB4F0,0xFF3904,0x6B0000,0xE59500,0xE6BE0C,0xE5D900,0x7D26CD,0xEC08EC,0x330077,0x020763,0x05100FF,0x0B5E8EE,0x005BA1,0x06583CF,0x0FFA7D1,0x099530D,0x0BB4F00,0x0633C1F,0x0FF416A,0x0CE2939]);
    smodule.packetSpeed = 46;
    smodule.packetCount = null;
    smodule.silent = true;
    smodule.tickSpeed = 100;
    smodule.timer = window;
    smodule.order = 'fromCenter';
    smodule.callbacks = [];
    smodule.subscribe = (...funcs) => {
        smodule.callbacks.push(...funcs.flat());
        funcs.flat().map(f => f(smodule));
    };

    PPClient.config = new Proxy(smodule, {
        set(target, key, value) {
            target[key] = value;
            target.callbacks.map(c => c(target));
            return true;
        }
    });

    PPClient.modules.Config = smodule;
})();
// 0vC4#7152, SussyCartoonWars123#4249