Lib Export Holder

Hold the exports inside the variable.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greatest.deepsurf.us/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. };