Greasy Fork is available in English.

NH_base

Base library usable any time.

Script này sẽ không được không được cài đặt trực tiếp. Nó là một thư viện cho các script khác để bao gồm các chỉ thị meta // @require https://update.greasyfork.org/scripts/477290/1869418/NH_base.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

Tác giả
Mike Castle (Nexus)
Phiên bản
72
Đã tạo
12-10-2023
Đã cập nhật
07-07-2026
Kích thước
70 KB
Giấy phép
GPL-3.0-or-later

lib/base - A NexusHoratio library.

Pure JavaScript stuff. Nothing here should be WEB API aware, except Logger's use of console (and apparently crypto).

Exported properties (as of version 71)

  • version - Bumped per release.
  • NOT_FOUND - Returned by some APIs like findIndex().
  • ONE_ITEM - Useful for testing length of an array.
  • LAST_ITEM - Identify the last item in a collection like at(-1).
  • ensure - Ensures appropriate versions of NexusHoratio libraries are loaded.
  • Code - Mapping of Google's Canonical Error Codes.
  • Dispatcher - Simple dispatcher (event bus).
  • MessageQueue - A simple message system that will queue messages to be delivered.
  • issues - NexusHoratio libraries and apps should post issues to this MessageQueue.
  • DefaultMap - Subclass of Map similar to Python's defaultdict.
  • Logger - Fancy-ish log messages (likely over engineered).
  • uuId - Create a UUID-like string with a base.
  • safeId - Normalize a string to be safe to use as an HTML element id.
  • strHash - Jenkins one at a time hash.
  • sha256 - Compute the SHA-256 digest of a string (deprecated).
  • simpleParseWords - Separate a string of concatenated words along transitions.
  • Service - Base class for building services that can be turned on and off.

More details are in base.js as JSDoc.