eQueline / IA QoL

// ==UserScript==
// @name         IA QoL
// @namespace    https://equeline.github.io
// @version      2.303
// @author       eQueline
// @match        *://game310893.konggames.com/*
// @license      MIT
// ==/UserScript==

(function () {
    'use strict';

    if (window.top === window.self) {}
    else {
        (function init() {
            if (typeof gameState != "undefined") {
                // load source from my repository
                var scriptsource = document.createElement("script");
                scriptsource.src = 'https://equeline.github.io/QoL/source.min.js';
                (document.head || document.documentElement).appendChild(scriptsource);
                scriptsource.parentNode.removeChild(scriptsource);

                // execute when it loads
                (function injectSource() {
                    if (typeof sourcecode != "undefined") {
                        var script = document.createElement("script");
                        script.textContent = sourcecode;
                        (document.head || document.documentElement).appendChild(script);
                        script.parentNode.removeChild(script);
                    } else {
                        setTimeout(injectSource, 300);
                    }
                })();
            } else {
                setTimeout(init, 300);
            }
        })();
    }
})();