mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-18 21:48:33 +03:00
Created Safari (markdown)
36
Safari.md
Normal file
36
Safari.md
Normal file
@@ -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
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user