// ==UserScript== // @name Kirka gun fire rate increase toggleable, Speed hack, and Fast Reload. // @namespace http://tampermonkey.net/ // @version 0.6 // @description Click X to toggle fire rate // @author Cqmbo__ // @match https://kirka.io/ // @match https://kirka.io/games // @license MIT // @grant none // @downloadURL none // ==/UserScript== let fireRateEnabled = false; // Store original Date.now and performance.now functions const originalDateNow = Date.now; const originalPerformanceNow = performance.now; // Automatically enable the speed hack performance.now = () => originalPerformanceNow.call(performance) *1.25; console.log("Speed increase enabled"); function toggleFireRate() { fireRateEnabled = !fireRateEnabled; if (fireRateEnabled) { // Double the Date.now function rate Date.now = () => originalDateNow() * 2; console.log("Gun fire rate increase enabled"); } else { // Restore original Date.now function Date.now = originalDateNow; console.log("Gun fire rate increase disabled"); } updateInfoDisplay(); } function updateInfoDisplay() { const infoDisplay = document.getElementById("infoDisplay"); infoDisplay.innerText = `Fire Rate: ${fireRateEnabled ? 'Enabled (x)' : 'Disabled (x)'}`; } // Toggle functions when pressing keys document.addEventListener('keydown', function(event) { if (event.key === 'x') { toggleFireRate(); } updateInfoDisplay(); }); // Create info display const infoDisplay = document.createElement("div"); infoDisplay.id = "infoDisplay"; infoDisplay.style.position = "fixed"; infoDisplay.style.top = "10px"; infoDisplay.style.left = "10px"; infoDisplay.style.color = "#ffffff"; infoDisplay.style.zIndex = "9999"; infoDisplay.style.backgroundColor = "rgba(0, 0, 0, 0.5)"; infoDisplay.style.padding = "5px"; infoDisplay.style.borderRadius = "5px"; document.body.appendChild(infoDisplay); // Initial update of info display updateInfoDisplay();