Krunker Stuffed Up Example

try to take over the world!

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 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         Krunker Stuffed Up Example
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       Skid Lamer
// @match        *://krunker.io/*
// @run-at       document-start
// @grant        none
// @noframes
// ==/UserScript==

(function() {
    'use strict';
    let defined =object =>void 0!==object&&object;
    let wait = setInterval(_ => {
        let world = window.gg; // WTF krunker why is this now a window global? - you fucking idiots
        if (defined(world)) {
            if (defined(world.update)) {
                const update_orig = world.update;
                world.update = function() {
                    let rv = update_orig.apply(this, arguments);

                    for (let i=0; i < this.players.list.length; ++i) {
                        const player = this.players.list[i];
                        if (player && player.active) {
                            if (player.renderYou) {//you are the player

                                if (player.armMeshes.length) {
                                    const mesh = player.armMeshes[0];
                                    const material = mesh.material;
                                    material.alphaTest = 1;
                                    material.depthTest = false;
                                    material.fog = false;
                                    material.emissive.r = 1;
                                    //material.emissive.g = 1;
                                    material.emissive.b = 1;
                                    material.wireframe = true;
                                }

                            }
                            else {
                                //player.upperBody.renderOrder = 1;
                                //player.lowerBody.renderOrder = 1;
                            }
                        }
                    }

                    return rv;
                }
                clearInterval(wait);
            }
        }
    }, 100);
})();