agregore-browser
agregore-browser copied to clipboard
agregore://settings extension
🤔 A browser UI for configuring settings in general like
agregore://settings
might be useful. Kinda like how chrome://flags works.
Originally posted by @RangerMauve in https://github.com/AgregoreWeb/agregore-browser/issues/196#issuecomment-1173155548
An extension could be bundled with agregore that provides a ui for agregore settings with routes for protocol settings.
-
agregore://settings
- for general agregore settings -
agregore://settings/<protocol>
- for protocol specific settings, e.g.agregore://settings/ssb
I imagine the simplest solution would be for the extension to write to ~/.agregorerc
We could just prototype this in app/pages for now? Just for settings.
Yeah for sure.
I think a good first step would be the following:
- Find a way to only allow
agregore://settings
to load up in the top frame, and not in regular protocol handlers. - Find a way to listen on messages from
agregore://settings
for updating the config file. Make sure to have check so that other origins/pages cannot call this API. - Have a rudimentary text editing thing with the current JSON values for the config file as well as a save button to update the
.agregorerc
file.