Krunker Infinite Kr (Visual Only)

Infinite Kr

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Krunker Infinite Kr (Visual Only)
// @namespace    https://discord.gg/4T6HGWTBd7
// @version      1.0
// @description   Infinite Kr
// @author       Jaguar
// @match        https://krunker.io/*
// @icon        https://media.discordapp.net/attachments/1139643669385846934/1140016348806778930/images.jpg?width=247&height=130
// @grant        none
// @license MIT
// ==/UserScript==

// Discord- https://discord.gg/4T6HGWTBd7
// GitHub- https://github.com/Documantation12

const menuKRCountElement = document.getElementById('menuKRCount');
const hasLogin = localStorage.getItem('krunker_haslogin');
if (hasLogin === 'true') {
    if (menuKRCountElement) {
        let currentNumber = parseInt(menuKRCountElement.textContent) || 0;
        setInterval(() => {
            menuKRCountElement.innerHTML = `${(currentNumber += 100) || 0} <span style="color:#fbc02d">KR</span>`;
        }, 1);
    } else {
        console.log("Menu KR Count element not found.");
    }
} else {
    const userResponse = confirm("Please log in to see your KR count.\nPress OK to log in or Cancel to continue without logging in.");
    if (userResponse) {
        localStorage.setItem('krunker_haslogin', 'true');
    }
}