Lib Export Holder

Hold the exports inside the variable.

ეს სკრიპტი არ უნდა იყოს პირდაპირ დაინსტალირებული. ეს ბიბლიოთეკაა, სხვა სკრიპტებისთვის უნდა ჩართეთ მეტა-დირექტივაში // @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. };