KameSame Open Framework - Jquery module

Progress module for KameSame Open Framework

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

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

  1. // ==UserScript==
  2. // @name KameSame Open Framework - Jquery module
  3. // @namespace timberpile
  4. // @description Progress module for KameSame Open Framework
  5. // @version 0.1
  6. // @copyright 2022+, Robin Findley, Timberpile
  7. // @license MIT; http://opensource.org/licenses/MIT
  8. // ==/UserScript==
  9.  
  10. (function(global) {
  11.  
  12. console.log(ksof)
  13.  
  14. //########################################################################
  15. //------------------------------
  16. // Published interface
  17. //------------------------------
  18. global.ksof.Jquery = {
  19. version: version,
  20. };
  21. //########################################################################
  22.  
  23. var version;
  24.  
  25. ksof.ready('document')
  26. .then(function(){
  27. var promises = [];
  28. try {
  29. $.fn.jquery;
  30. } catch(e) {
  31. promises.push(ksof.load_script(ksof.support_files['jquery.js'], true /* cache */));
  32. }
  33. return Promise.all(promises);
  34. })
  35. .then(function(data){
  36. version = $.fn.jquery;
  37. // Notify listeners that we are ready.
  38. // Delay guarantees include() callbacks are called before ready() callbacks.
  39. setTimeout(function(){ksof.set_state('ksof.Jquery', 'ready');},0);
  40. });
  41.  
  42. })(window);

QingJ © 2025

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