'el-switch' - autohotkey-disabler for luckyfish.io

disable hotkeys on luckyfish

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        'el-switch' - autohotkey-disabler for luckyfish.io 
// @description  disable hotkeys on luckyfish
// @match        https://luckyfish.io/diceClassic
// @author       Rain_Bot | https://rainbot.ch
// @version      5.2rev7
// @license      Open Source
// @grant        none
// @run-at       document-start
// @namespace https://greasyfork.org/users/710212
// ==/UserScript==

//////////////////////////////////////////////////////////////
// --	☂\(._.\) made with ♥ in Switzerland ((/._.)/☂    -- //
////////////////////////////////////////////////////////////

window.onload = function loadpage() {
    if (document.readyState === 'complete') {
        console.log(document.readyState);
        setTimeout(function() {
            console.log('Open Hotkey Setup-Overlay');
            document.getElementsByClassName("left gameBar_li active")[1].click();
        }, 1234);
        setTimeout(function() {
            console.log('Hotkey Switch "triggered"');
            document.getElementsByClassName("el-switch")[4].click();
        }, 1234);
        setTimeout(function() {
            console.log('Hotkeys ==> "false"');
            document.getElementsByClassName("hotkeys_close iconfont commonAlert_close")[0].click();
            console.log('.');
            console.log('..');
            console.log('...');
            console.log('\nDONE!');
        }, 1234);
        setTimeout(function() {
            console.clear();
        }, 12345);
    }
};