From 20433014a6fb4307143231e18cac235b74677f59 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 22 Jun 2021 19:51:12 -0400 Subject: [PATCH] Created Safari (markdown) --- Safari.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Safari.md diff --git a/Safari.md b/Safari.md new file mode 100644 index 0000000..36dc066 --- /dev/null +++ b/Safari.md @@ -0,0 +1,36 @@ +## App Store + +Coming Soon + +## Build it yourself + +Prerequisite: Install Xcode + +1. Either download `ChromeExtension.zip` from [the latest release](https://github.com/ajayyy/SponsorBlock/releases/latest) or follow the [build instructions](https://github.com/ajayyy/SponsorBlock#building) in the readme. + +2. [Convert the extension to a MacOS app](https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari) using: + +```bash +xcrun safari-web-extension-converter /path/to/extension +``` + +3. Click run in the top of Xcode + +![image](https://user-images.githubusercontent.com/12688112/123013186-bc6e5c80-d391-11eb-8ddc-5fec61cc2975.png) + +4. [Configure Safari in macOS to Run Unsigned Extensions](https://developer.apple.com/documentation/safariservices/safari_web_extensions/running_your_safari_web_extension#see-also) + +To develop without a certificate, tell Safari to load unsigned extensions using the Develop menu. To enable the Develop menu in Safari: +- Choose Safari > Preferences. +- Select the Advanced tab. +- Check the “Show Develop menu in menu bar” option. +- Then, choose Develop > Allow Unsigned Extensions. The Allow Unsigned Extensions setting is reset when you quit Safari; set it again the next time you launch Safari. + +![image](https://user-images.githubusercontent.com/12688112/123013258-e0ca3900-d391-11eb-9ab2-4a6a932ec89a.png) + +5. Now enable the extension +- Choose Safari > Preferences. +- Select the Extensions tab. This tab shows the localized description, display name, and version number for the selected Safari App Extension. It also provides more information about the permissions claimed by the extension. +- Find your new extension in the list on the left, and enable it by selecting the checkbox. + +