kbin-megamod: proposal and proof of concept for integrated collection of kbin scripts with toggle menu

Recently I had been thinking about using localstorage to elaborate a settings menu that could be used to toggle various scripts that persist browser sessions and would make the process of script management less fiddly and prone to collisions for end-users.... #kbinStyles

https://github.com/aclist/kbin-megamod/tree/main

GitHub - aclist/kbin-megamod: Integrated collection of kbin scripts with toggles

Integrated collection of kbin scripts with toggles - GitHub - aclist/kbin-megamod: Integrated collection of kbin scripts with toggles

GitHub

This is awesome! I was working on something similar, but you beat me to the punch! This is probably a better way to handle it than how I had planned, with each script adding itself to the settings (although I think that would be nice to have as an alternate method, so scripts not in the megamod can still have access to a nice config menu).

If I'm understanding this correctly, it seems like you should be able to add multiple config options per script, which is great (but I think it might be a bit hacky)! It'd be awesome if you could add headers to help separate the options into sections, and add more option types like text, sliders, and radio buttons. Having more config types would be awesome for other configuration purposes. I also think that the current method of adding config options is a bit clunky and will definitely get unwieldy as the number of mods grows, maybe a function like addOption(mmLabel, mmDesc, mmFunc, funcObj) would work well.

I'm gonna start messing with this and getting my scripts set up to work with it, I'll throw together a pull request once I've gotten some of them working