Krunker Infinite Kr (Visual Only)

Infinite Kr

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

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