KameSame Open Framework - Jquery module

Progress module for KameSame Open Framework

Stan na 07-10-2022. Zobacz najnowsza wersja.

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greatest.deepsurf.us/scripts/451523/1101979/KameSame%20Open%20Framework%20-%20Jquery%20module.js

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

"use strict";
// ==UserScript==
// @name        KameSame Open Framework - Jquery module
// @namespace   timberpile
// @description Progress module for KameSame Open Framework
// @version     0.1
// @copyright   2022+, Robin Findley, Timberpile
// @license     MIT; http://opensource.org/licenses/MIT
// ==/UserScript==
// These lines are necessary to make sure that TSC does not put any exports in the
// compiled js, which causes the script to crash
// eslint-disable-next-line no-var, @typescript-eslint/no-unused-vars
var module = {};
(async (global) => {
    console.log(1);
    const ksof = global.ksof;
    //########################################################################
    //------------------------------
    // Published interface
    //------------------------------
    // eslint-disable-next-line no-var
    var version = '';
    ksof.Jquery = {
        version: version,
    };
    //########################################################################
    ksof.ready('document')
        .then(function () {
        const promises = [];
        try {
            $.fn.jquery;
        }
        catch (e) {
            promises.push(ksof.load_script(ksof.support_files['jquery.js'], true /* cache */));
        }
        return Promise.all(promises);
    })
        .then(function (data) {
        version = $.fn.jquery;
        // Notify listeners that we are ready.
        // Delay guarantees include() callbacks are called before ready() callbacks.
        setTimeout(function () { ksof.set_state('ksof.Jquery', 'ready'); }, 0);
    });
})(window);
module.exports = null;