Cryzen.io Mod Menu

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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);
})();