PANIC

Combat Logging / Emergency button

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

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το 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         PANIC
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Combat Logging / Emergency button
// @author       Earth1283
// @match        https://www.mine-craft.io/*
// @grant        GM_addStyle
// @licence      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Create the panic button element
    var panicButton = document.createElement('button');
    panicButton.innerText = 'PANIC';

    // Apply some basic styles
    panicButton.style.position = 'fixed';
    panicButton.style.bottom = '20px';
    panicButton.style.right = '20px';
    panicButton.style.padding = '15px 30px';
    panicButton.style.fontSize = '18px';
    panicButton.style.backgroundColor = '#ff0000';
    panicButton.style.color = 'white';
    panicButton.style.border = 'none';
    panicButton.style.borderRadius = '10px';
    panicButton.style.cursor = 'pointer';
    panicButton.style.zIndex = '9999';
    panicButton.style.fontWeight = 'bold';
    panicButton.style.boxShadow = '0 4px 8px rgba(0, 0, 0, 0.3)';

    // Add event listener to redirect when clicked
    panicButton.addEventListener('click', function() {
        window.location.href = 'https://www.mine-craft.io';
    });

    // Add the panic button to the body of the page
    document.body.appendChild(panicButton);
})();