Greasy Fork is available in English.

NH_base

Base library usable any time.

These are versions of this script where the code was updated. Show all versions.

  • v4 14/10/2023

    Migrate Logger to base.

    Some cosmetic differences between the original version and this one:

    • GroupMode is now internal. I figured out how to use static initialization blocks to create the known enums and freeze the nested class.
    • #Config is now a private class.
    • These classes required a lot of rearranging to meet the new style guidelines.

    I did waffle a bit about whether I should move GroupMode into Logger or Config out. With the way the library explicitly exposes symbols, both would allow them to be effectively private. Since this whole userscript thing is as much of a learning exercise as anything else, I went with the hardway, simply for the experience. If Logger was going to be in a standalone module, I would likely have moved them out, but since these libraries will not be that granular, I also think this makes more sense.

    Issue #167.

  • v3 14/10/2023

    Migrate DefaultMap to base.

    Issue #167.

  • v2 13/10/2023

    Change up how properties are returned from the library.

    Doing this as a return from an IIFE feels more natural, particularly when writing more arbitrary code, like test cases inside the library.

    Issue #167.

  • v1 13/10/2023

    Add a couple of simple items while we figure out how to use this.

    Issue #167.

  • v0.01 13/10/2023

    Bump version number.

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

Show all script versions