KameSame Open Framework - Jquery module

Progress module for KameSame Open Framework

当前为 2022-10-07 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/451523/1101992/KameSame%20Open%20Framework%20-%20Jquery%20module.js

  1. "use strict";
  2. // ==UserScript==
  3. // @name KameSame Open Framework - Jquery module
  4. // @namespace timberpile
  5. // @description Progress module for KameSame Open Framework
  6. // @version 0.1
  7. // @copyright 2022+, Robin Findley, Timberpile
  8. // @license MIT; http://opensource.org/licenses/MIT
  9. // ==/UserScript==
  10. (async (global) => {
  11. const ksof = global.ksof;
  12. await ksof.ready('document');
  13. try {
  14. $.fn.jquery;
  15. }
  16. catch (e) {
  17. await ksof.load_script(ksof.support_files['jquery.js'], true /* cache */);
  18. }
  19. ksof.Jquery = { version: $.fn.jquery };
  20. // Notify listeners that we are ready.
  21. // Delay guarantees include() callbacks are called before ready() callbacks.
  22. setTimeout(() => { ksof.set_state('ksof.Jquery', 'ready'); }, 0);
  23. })(window);
  24. module.exports = null;

QingJ © 2025

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