Closed HumanoidSandvichDispenser closed 1 year ago
I changed the variable name. Is it ready now?
Just realized I misunderstood your code lol. A couple potential changes now that I understand what it is actually doing:
sessionStorage
instead of localStorage
, since this doesn't need to be persistent?ttcSettings
that was going into a public namespace; since it's actually "cfg"
, I think that is probably the one that needs a more specific name.
Once these are addressed, I'll merge it :)
This PR exposes the user's current settings/configuration through localStorage, which allows injected scripts to read what features the user enabled.
This would be useful in #3/#1 where the "skip for now" button should also confirm skipping the question for now if the user has skip confirmation enabled. It also allows the
textSkipConfirm.js
andalwaysSkipConfirm.js
scripts to be combined in one file.