Base library usable any time.
目前為 2023-10-17 提交的版本,檢視 最新版本。
這裡只顯示彼此間有代碼差異的版本。 顯示所有版本。
Migrate Logger to base.
Logger
Some cosmetic differences between the original version and this one:
GroupMode
static
#Config
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.
Config
Issue #167.
␄
Migrate DefaultMap to base.
DefaultMap
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.
Add a couple of simple items while we figure out how to use this.
Bump version number.
顯示所有腳本版本