Speed Hack

V ye basınca çalışır

// ==UserScript==
// @name         Speed Hack
// @namespace    http://tampermonkey.net/
// @version      1
// @description  V ye basınca çalışır
// @author       r
// @match        http://zombs.io/
// @grant        none
// ==/UserScript==
(function() {
    EquipPet1Click = function() {
        EquipPet1 = document.getElementsByClassName('hud-shop-actions-equip')[1];
        EquipPet1.attributes.class.value = 'hud-shop-actions-equip';
        EquipPet1.click();
    };
    EquipPet2Click = function() {
        EquipPet2 = document.getElementsByClassName('hud-shop-actions-equip')[2];
        EquipPet2.attributes.class.value = 'hud-shop-actions-equip';
        EquipPet2.click();
    };
    timer = null;
    script = function(e) {
        switch (e.code) {
            case "KeyV":
                if (timer === null) {
                    timer = setInterval(function() {
                        EquipPet1Click();
                        EquipPet2Click();
                    }, 1);
                } else {
                    clearInterval(timer);
                    timer = null;
                }
                break;
            default:
                return;
        }
    };
    document.addEventListener('keydown', function(e) {
        script(e);
    });
})();