Have you ever considered trying out Safari, but soon discovered that it lacks your preferred Chrome or Firefox extensions? I had this same issue.
Apple has introduced a user-friendly tool called Safari Web Extension Converter. This tool simplifies the process of converting Chrome or Firefox extensions to Safari.
Let’s explore how we can convert a Chrome or Firefox extension to work with Safari!
Downloading the Source Code of the Extension
The first step to convert your extension is to download its source code first. Paste the link of your extension in this website and Download the source code of the extension.
Converting the Extension with Xcode
- First you need Xcode to be able to convert the extension. Download Xcode from the App Store.
- Extract the extension source code.
- Open the Terminal app and run the following command:
xcrun safari-web-extension-converter --macos-only /path/to/extension/folder
- Xcode will launch after the command.
- Click the Play icon on the top left of the Xcode window and wait for the extension to compile.
- Close the App after it opens.
Enabling the Extension
- Open Safari and go to the Settings.
- Go to the Advanced tab and enable Show features for web developers.
- Go to the Developer tab and enable Allow unsigned extensions.
- Now go to the Extensions tab and enable your extension.
You should now have your Chrome or Firefox extension on Safari!
Keep in mind that you need to enable the Allow unsigned extensions option every time you fully quit Safari.
As an example, I converted a Chrome extension I couldn’t live without to Safari, and published it to my GitHub.