KameSame Open Framework - Jquery module

Progress module for KameSame Open Framework

目前為 2022-10-07 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/scripts/451523/1101991/KameSame%20Open%20Framework%20-%20Jquery%20module.js

"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) => {
    const ksof = global.ksof;
    await ksof.ready('document');
    try {
        $.fn.jquery;
    }
    catch (e) {
        await ksof.load_script(ksof.support_files['jquery.js'], true /* cache */);
    }
    ksof.Jquery = { 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;

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址