refined-github-safari icon indicating copy to clipboard operation
refined-github-safari copied to clipboard

Safari web extension

Open lautis opened this issue 5 years ago • 2 comments

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.

Preview build

fixes #5, fixes #6, fixes #7, fixes #8.

lautis avatar Oct 17 '20 18:10 lautis

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

fregante avatar Nov 26 '20 08:11 fregante

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 activeTab will be enabled instantly when clicking the toolbar button, on any site, but only temporarily.

fregante avatar Nov 26 '20 08:11 fregante