Narrow down extension permissions
Currently it requires host permissions for all URLs. Would be cool if it had no access to any pages at all (if people are only using it for local files), then dynamically ask for more (or all websites).
This could also solve #26.
Maybe also need to add a way to open non-local files in the local-file-player, with a link to the video file.
How it's done: https://extensionworkshop.com/documentation/develop/request-the-right-permissions/#request_permissions_at_runtime
Workaround
To make sure that the extension can only read data on specific websites, or only when you click on the extension icon (or activate one of its shortcuts), follow the instructions in https://github.com/WofWca/jumpcutter/issues/26#issuecomment-2416512796.
@DavidSM100 and me have played around with optional_permissions, optional_host_permissions and for us it acts quite unintuitively, the behavior between browsers is inconsistent. It's also not clear whether host permissions is required for dynamically registered content scripts.