Hacker News new | ask | show | jobs
by 0x696C6961 568 days ago
> 1. add a very heavy editor framework (monaco) for a configuration page?

It's a configuration page which requires editing code, so I added a code editor.

> 2. use actual javascript to check partial urls one at a time?

> For 2. this would be better handled by a json or similar that just maps Firefox's approved url match patterns[1]? Using javascript adds potential execution vulnerabilities and possibly parsing complexity that isnt needed.

There are other addons which work like that:

* https://addons.mozilla.org/en-CA/firefox/addon/containerise/ * https://addons.mozilla.org/en-CA/firefox/addon/multi-account...

This addon is for more complex use-cases. For example:

    return url.searchParams.get("x-SessionName");