chatgpt menutemp

Mod menu for Krunker (UND)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         chatgpt menutemp
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Mod menu for Krunker (UND)
// @author       Chatgpt
// @match        https://krunker.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var modMenu = document.createElement('div');
    modMenu.id = 'modMenu';
    modMenu.innerHTML = `
        <h2>Mod Menu</h2>
        <button id="toggleButton">Toggle Menu</button>
        <div id="options">
            <label for="option1">Option 1:</label>
            <input type="checkbox" id="option1">
            <label for="option2">Option 2:</label>
            <input type="checkbox" id="option2">
            <!-- Add more options as needed -->
        </div>
    `;
    document.body.appendChild(modMenu);

    modMenu.style.position = 'fixed';
    modMenu.style.top = '20px';
    modMenu.style.right = '20px';
    modMenu.style.backgroundColor = 'rgba(0, 0, 0, 0.8)';
    modMenu.style.color = 'white';
    modMenu.style.padding = '10px';
    modMenu.style.borderRadius = '5px';
    modMenu.style.display = 'none';

    var options = document.getElementById('options');
    options.style.marginTop = '10px';

    var optionLabels = document.querySelectorAll('#options label');
    optionLabels.forEach(function(label) {
        label.style.display = 'block';
        label.style.marginBottom = '5px';
    });

    document.addEventListener('mousedown', function(event) {
        if (event.button === 1) {
            modMenu.style.display = modMenu.style.display === 'none' ? 'block' : 'none';
        }
    });

    var toggleButton = document.getElementById('toggleButton');
    toggleButton.addEventListener('click', function() {
        options.style.display = options.style.display === 'none' ? 'block' : 'none';
    });

    var option1 = document.getElementById('option1');
    option1.addEventListener('change', function() {

    });

    var option2 = document.getElementById('option2');
    option2.addEventListener('change', function() {

    });

})();