Greasy Fork

NH_base

Base library usable any time.

当前为 2023-10-13 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/477290/1263984/NH_base.js

// ==UserScript==
// ==UserLibrary==
// @name        NH_base
// @description Base library usable any time.
// @version     2
// @license     GPL-3.0-or-later; https://www.gnu.org/licenses/gpl-3.0-standalone.html
// @homepageURL https://github.com/nexushoratio/userscripts
// @supportURL  https://github.com/nexushoratio/userscripts/issues
// @match       https://www.example.com/*
// ==/UserLibrary==
// ==/UserScript==

window.NexusHoratio ??= {};

window.NexusHoratio.base = (function base() {
  'use strict';

  const version = 2;

  const testing = {
    enabled: false,
    funcs: [],
  };

  const NOT_FOUND = -1;

  return {
    version: version,
    testing: testing,
    NOT_FOUND: NOT_FOUND,
  };

}());