NH_userscript

Wrappers for dealing with variations in userscript managers.

queste sono le versioni di questo script in cui il codice è stato aggiornato Visualizza tutte le versioni.

  • v17 08/06/2026

    Support the userscript value change listener API if enabled.

    If enabled, that will be used to determine if Logger configs should be reloaded. Otherwise, it will fallback to the browser visibilitychange event.

    See docstring for enabling the API.

    Issue #196.

    Bump version number.

  • v16 04/06/2026

    No longer save Logger configs on visibility change.

    Now that LoggerConfigSaver listens for config changes, there is no longer a eed to save all of the time.

    Issue #196.

    Post an issue if an unknown event is seen.

    Issue #196.

    Bump version number.

  • v15 02/06/2026

    Enhance LoggerConfigSaver to use Logger's config dispatcher.

    Issue #196.

  • v14 01/06/2026

    Refactor how Logger configs are loaded and saved.

    While fairly simple at the moment, a minor change is forthcoming and we want to isolate that.

    Issue #196.

    Update library from specific exception to Error with cause.

    Issue #254.

  • v13 30/05/2026

    Move loading Logger configs earlier in the process.

    Issue #196.

    Move event handling setup into LoggerConfigSaver.

    Issue #196.

    Bump version number.

  • v12 18/04/2026

    eslint: Fully disallow name as a local variable.

    Closes #238.

    Bump version number.

  • v11 13/04/2026

    Start renaming name to id for licenseData.

    Issue #238.

    Bump version number.

  • v10 08/04/2026

    Remove a deprecated exception.

    Issue #259.

    Bump version number.

  • v9 07/04/2026

    Stop shadowing the global name.

    Issue #238.

    Correct a docstring.

    Bump version number.

  • v8 31/03/2026

    eslint: Remove unused directives.

    Bump version number.

  • v7 18/03/2026

    Document getValue() and setValue().

    Implement setAutoManageLoggerConfigs().

    This is a refactoring of similar from LinkedIn Tool.

    Closes #288.

  • v6 04/03/2024

    Migrate most modules to use base.Exception.

    Issue #259.

    Bump version number.

  • v5 22/11/2023

    eslint: Deal with some upcoming tweaks to newline-per-chained-call.

    Issue #203.

    Bump version number.

  • v4 05/11/2023

    Wrappers aroung GM.{get,set}Value that do nothing if not granted.

    They may be enhanced to use local storage or something in the future. For now, they just silently fail.

    Issue #170.

    Bump version numbers.

  • v3 04/11/2023

    Capture more information when unable to extrace the license.

    Issue #187.

    Extract license information from a different field from GM.info.

    This seems to make Greasemonkey happy.

    Issue #187.

    Bump version numbers.

  • v2 28/10/2023

    Add environmentData() to lib/userscript.

    Mostly a raw copy from _errorPlatformInfo(). Untested in its current form.

    Issue #167.

    Bump version numbers.

  • v1 27/10/2023

    Give the IIFE a local name.

    This makes no difference in reality, it only exists to make eslint happy. But it reads better than using base.

    Issue #167.

    Bump version numbers.

  • v0 26/10/2023
  • v0 26/10/2023 Imported from URL