-
-
Notifications
You must be signed in to change notification settings - Fork 315
Safari
Ajay Ramachandran edited this page Jun 17, 2022
·
13 revisions
This works on both iOS and macOS
Source code: https://github.com/ajayyy/SponsorBlockSafari
Prerequisite: Install Xcode
-
Either download
SafariExtension.zip
from the latest release or follow the build instructions for Chrome in the readme.
xcrun safari-web-extension-converter /path/to/extension
- Click run in the top of Xcode
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.
- 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.
You do not need to follow these steps to build it yourself, these are here for me or anyone else publishing to the AppStore
- Set Bundle identifier, version number, and build number for both targets (extension one must be different)
- Set App category in main target
- Edit
extensionBundleIdentifier
to the extension package name.