Safari web extension
Migrate the project to use Safari Web Extensions. This PR mostly works, but code signing does not: the built app requires "Allow unsigned extensions" to be enabled. Also currently the extension must be manually enabled also on github.com, but it probably should ask for permission.
fixes #5, fixes #6, fixes #7, fixes #8.
the built app requires "Allow unsigned extensions" to be enabled
From my understanding, this is because Apple decided that Safari extensions can only be distributed via the App store. Another example: https://github.com/npmhub/npmhub/pull/113#issuecomment-716090493
currently the extension must be manually enabled also on github.com
It appears that this is also required since, unlike other extension stores, the App Store never asks for permission before installing. Therefore the user is always required to grant access after install.
Some extensions work around this requirements:
- content blockers don't have access to the page
- they ask for
all_urls: https://user-images.githubusercontent.com/1402241/100325722-9d8c2100-2f8e-11eb-99d7-ef38acbd360e.png - maybe extensions that only have
activeTabwill be enabled instantly when clicking the toolbar button, on any site, but only temporarily.