Cryzen.io Mod Menu

Adds a simple mod menu to Cryzen.io for cheats and enhancements.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Cryzen.io Mod Menu
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Adds a simple mod menu to Cryzen.io for cheats and enhancements.
// @author       Me :)
// @match        https://cryzen.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Create a new div element for the mod menu
    const modMenu = document.createElement('div');
    modMenu.style.position = 'fixed';
    modMenu.style.top = '10px';
    modMenu.style.left = '10px';
    modMenu.style.padding = '10px';
    modMenu.style.backgroundColor = 'rgba(0, 0, 0, 0.8)';
    modMenu.style.color = 'white';
    modMenu.style.zIndex = '10000';
    modMenu.style.fontFamily = 'Arial, sans-serif';
    modMenu.style.borderRadius = '5px';

    // Add title to the mod menu
    const title = document.createElement('h2');
    title.innerText = 'Cryzen.io Mod Menu';
    title.style.marginTop = '0';
    modMenu.appendChild(title);

    // Function to create a button
    function createButton(text, onClick) {
        const button = document.createElement('button');
        button.innerText = text;
        button.style.margin = '5px';
        button.style.padding = '5px 10px';
        button.style.border = 'none';
        button.style.borderRadius = '3px';
        button.style.cursor = 'pointer';
        button.style.backgroundColor = '#444';
        button.style.color = 'white';
        button.addEventListener('click', onClick);
        modMenu.appendChild(button);
    }

    // Function to add score
    function addScore(amount) {
        if (window.Cryzen && window.Cryzen.player) {
            window.Cryzen.player.score += amount;
            console.log(`Added ${amount} to score.`);
        } else {
            console.log('Cryzen.io player object not found.');
        }
    }

    // Function to increase speed
    function increaseSpeed(amount) {
        if (window.Cryzen && window.Cryzen.player) {
            window.Cryzen.player.speed += amount;
            console.log(`Increased speed by ${amount}.`);
        } else {
            console.log('Cryzen.io player object not found.');
        }
    }

    // Add buttons to the mod menu
    createButton('Add 1000 Score', () => addScore(1000));
    createButton('Add 5000 Score', () => addScore(5000));
    createButton('Increase Speed by 10', () => increaseSpeed(10));
    createButton('Increase Speed by 20', () => increaseSpeed(20));

    // Add the mod menu to the document body
    document.body.appendChild(modMenu);
})();