NH_base

Base library usable any time.

لا ينبغي أن لا يتم تثبيت هذا السكريت مباشرة. هو مكتبة لسكبتات لتشمل مع التوجيه الفوقية // @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.

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

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

Advertisement:

المؤلف
Mike Castle (Nexus)
الإصدار
72
تم إنشاؤه
12-10-2023
تم تحديثه
07-07-2026
الحجم
71.3 KB
الترخيص
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.