Diep.io Ren Upgrades

Press "P" To hide the Upgrades.

// ==UserScript==
// @license      MIT
// @name         Diep.io Ren Upgrades
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Press "P" To hide the Upgrades.
// @author       Voyager
// @match        *://diep.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let debugInfoEnabled = true;

    // !!!
    function toggleDebugInfo() {
        debugInfoEnabled = !debugInfoEnabled;
        input.set_convar("ren_upgrades", debugInfoEnabled);
    }

    // Here you can change the key to hide the updgrades. By default is the key "P". (Change the two event.key)
    document.addEventListener('keydown', function(event) {
        if (event.key === 'P' || event.key === 'p') {
            toggleDebugInfo();
        }
    });
})();