Lib Export Holder

Hold the exports inside the variable.

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/5259/18732/Lib%20Export%20Holder.js

  1. // ==UserScript==
  2. // @name Lib Export Holder
  3. // @author Jixun
  4. // @description Hold the exports inside the variable.
  5. // @version 1.0
  6. // @copyright 2014+, Jixun
  7. // ==/UserScript==
  8.  
  9. var exports = {};
  10.  
  11. // TODO: Logic of callbacks?
  12. var require = function (name) {
  13. return exports[name];
  14. };

QingJ © 2025

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