Greasy Fork

DOGEWARE KRUNKER.IO RAPID FIRE & SPEED

KRUNKER.IO RAPID FIRE, SPEED, RELOAD, AND NO DISCONNECT BY DOGEWARE

目前为 2024-03-27 提交的版本。查看 最新版本

// ==UserScript==
// @name         DOGEWARE KRUNKER.IO RAPID FIRE & SPEED
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  KRUNKER.IO RAPID FIRE, SPEED, RELOAD, AND NO DISCONNECT BY DOGEWARE
// @author       DOGEWARE
// @match       *://krunker.io/*
// @match        *://browserfps.com/*
// @icon         https://media.giphy.com/media/CxYGmxv0Oyz4I/giphy.gif
// @grant        none
// ==/UserScript==

const amount = 1.113 //USE THE RECOMMENDED SETTINGS FOR MAXIMUM ANONYMITY, BUT CONSIDER REDUCING THEM IF YOU EXPERIENCE LAG. ANYTHING ABOVE A VALUE OF 2 WILL BE DETECTED INSTANTLY
const originalNow = Date.now.bind(Date);
let options = {
    SpeedHack: true
}
class KrunkerScript {
    constructor(author) {
        this.div = document.createElement('div');
        this.div.innerHTML = `<div class="Menuid"><h1 class="logofor4">${author}</h1><br><span id="speedHackText" style="font-weight: 650; display: inline;">[H]Speed<p id="uinfoy" style="font-weight: 800 !important;color: ${options.SpeedHack ? "lime" : "red"} !important;display: inline;">[${options.SpeedHack ? "ON" : "OFF"}]</p></span><p style="font-weight: 550;">[O]Hide</p></div><style>.Menuid{position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 145px;height: 150px;z-index: 9999;background: linear-gradient(to bottom, #101010, #181818);font-family: monospace;border-radius: 10px;color: white;text-align:center;display:block;}.Menuid *{color: white;font-family: monospace;text-transform: uppercase;}.logofor4{font-size: 26px;font-weight: bold;margin-bottom: 2px;animation: rgbAnimation 0.5s infinite alternate;}@keyframes rgbAnimation{0%{color: rgb(255, 0, 0);}25%{color: rgb(255, 255, 0);}50%{color: rgb(0, 255, 0);}75%{color: rgb(0, 255, 255);}100%{color: rgb(255, 0, 255);}}</style>`;

        this.isVisible = true;
        document.body.appendChild(this.div);

        this.storage("DG");

        document.addEventListener('keydown', (event) => {
            if (event.key === 'h' || event.key === 'H') {
                this.toggleSpeedHack();
            }
        });

        document.addEventListener('keydown', (event) => {
            if (event.key === 'o' || event.key === 'O') {
                this.togglePopup();
            }
        });
    }

    storage(name) {
        if (localStorage.getItem(name) === null) {
            localStorage.setItem(name, JSON.stringify(options));
        } else {
            options = JSON.parse(localStorage.getItem(name));
        }

        const speedHackText = document.getElementById('speedHackText');
        const uinfoyText = document.getElementById('uinfoy');
        if (options.SpeedHack) {
            speedHackText.innerHTML = '[H]Speed<p id="uinfoy" style="font-weight: 800 !important;color: lime !important;display: inline;">[ON]</p>';
              setTimeout(function(){
                Date.now = () => originalNow() * amount;
            },5000)
        } else {
            speedHackText.innerHTML = '[H]Speed<p id="uinfoy" style="font-weight: 800 !important;color: red !important;display: inline;">[OFF]</p>';
        }
    }

    toggleSpeedHack() {
        options.SpeedHack = !options.SpeedHack;
        const speedHackText = document.getElementById('speedHackText');
        const uinfoyText = document.getElementById('uinfoy');
        if (options.SpeedHack) {
            speedHackText.innerHTML = '[H]Speed<p id="uinfoy" style="font-weight: 800 !important;color: lime !important;display: inline;">[ON]</p>';
            Date.now = () => originalNow() * amount;
        } else {
            speedHackText.innerHTML = '[H]Speed<p id="uinfoy" style="font-weight: 800 !important;color: red !important;display: inline;">[OFF]</p>';
            alert("[OFF]REQUIRES RELOAD")
            location.href = `https://${location.hostname}/`
        }
        localStorage.setItem("DG", JSON.stringify(options));
    }

    togglePopup() {
        if (this.isVisible) {
            this.hidePopup();
        } else {
            this.showPopup();
        }
    }

    hidePopup() {
        this.div.style.display = 'none';
        this.isVisible = false;
    }

    showPopup() {
        this.div.style.display = 'block';
        this.isVisible = true;
    }
}

const Krunker = new KrunkerScript("DOGEWARE");