Advanced Skribbl.io Cheat GUI

Enhanced Cheat GUI for Skribbl.io

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το 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         Advanced Skribbl.io Cheat GUI
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Enhanced Cheat GUI for Skribbl.io
// @match        *://skribbl.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Create GUI container
    const gui = document.createElement('div');
    gui.style.position = 'fixed';
    gui.style.top = '10px';
    gui.style.right = '10px';
    gui.style.zIndex = '1000';
    gui.style.backgroundColor = 'white';
    gui.style.padding = '10px';
    gui.style.border = '1px solid black';
    gui.style.borderRadius = '5px';
    
    // Create a close button
    const closeButton = document.createElement('button');
    closeButton.innerText = 'X';
    closeButton.style.position = 'absolute';
    closeButton.style.top = '5px';
    closeButton.style.right = '5px';
    closeButton.style.backgroundColor = 'red';
    closeButton.style.color = 'white';
    closeButton.style.border = 'none';
    closeButton.style.borderRadius = '5px';
    closeButton.addEventListener('click', function() {
        gui.style.display = 'none';
    });
    gui.appendChild(closeButton);
    
    // Create an open button
    const openButton = document.createElement('button');
    openButton.innerText = 'Open Cheats';
    openButton.style.position = 'fixed';
    openButton.style.top = '10px';
    openButton.style.right = '10px';
    openButton.style.zIndex = '1000';
    openButton.addEventListener('click', function() {
        gui.style.display = 'block';
    });
    document.body.appendChild(openButton);

    // Auto-Draw Image Button
    const autoDrawButton = document.createElement('button');
    autoDrawButton.innerText = 'Auto Draw Image';
    autoDrawButton.addEventListener('click', function() {
        // Show file picker to select image
        const input = document.createElement('input');
        input.type = 'file';
        input.accept = 'image/*';
        input.style.display = 'none';
        input.addEventListener('change', function() {
            const file = input.files[0];
            if (file) {
                const reader = new FileReader();
                reader.onload = function(e) {
                    const image = new Image();
                    image.src = e.target.result;
                    // Logic to auto draw the image on Skribbl.io
                    console.log('Auto drawing image:', image.src);
                };
                reader.readAsDataURL(file);
            }
        });
        input.click();
    });
    gui.appendChild(autoDrawButton);

    // Auto-Guess Button
    const autoGuessButton = document.createElement('button');
    autoGuessButton.innerText = 'Auto Guess';
    autoGuessButton.addEventListener('click', function() {
        // Logic to auto guess
        console.log('Auto Guess activated');
    });
    gui.appendChild(autoGuessButton);

    // Ban Player Button
    const banPlayerButton = document.createElement('button');
    banPlayerButton.innerText = 'Ban Player';
    banPlayerButton.addEventListener('click', function() {
        const playerToBan = prompt('Enter player name to ban:');
        if (playerToBan) {
            // Logic to ban the player and send a report
            console.log('Banning player:', playerToBan);
            // Example of sending a report (Placeholder URL)
            fetch('https://example.com/report', {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/json'
                },
                body: JSON.stringify({ player: playerToBan })
            }).then(response => response.json())
              .then(data => console.log('Report sent:', data));
        }
    });
    gui.appendChild(banPlayerButton);

    // Restart Game Button
    const restartGameButton = document.createElement('button');
    restartGameButton.innerText = 'Restart Game';
    restartGameButton.addEventListener('click', function() {
        // Logic to restart the game
        console.log('Restart Game activated');
    });
    gui.appendChild(restartGameButton);

    // Append GUI to body
    document.body.appendChild(gui);

    // Logic for showing cheats to other players
    // This is complex and not directly feasible with JavaScript due to game restrictions
})();