Today I learned: to convert a chrome extension to safari
I've ditched chrome (for a ton of reasons) in favor of safari. Not because I particularly like it, but why install another one when there's no discernible difference.
Yet, I still miss some extensions. After some search, I managed to convert it, partially, with the following step learned from here. I recommend to read the original post if you want screenshots.
- Find the extension ID: in the extension management page or chrome web store:
https://chromewebstore.google.com/detail/{extension_name}/{extension_id} - Locate the files in
~/Library/Application\ Support/Google/Chrome/Default/Extensions/{extension_id}/{extension_version} - Navigate to a favorable directory and run
xcrun /Applications/Xcode.app/Contents/Developer/usr/bin/safari-web-extension-converter ~/Library/Application\ Support/Google/Chrome/Default/Extensions/{extension_id}/{extension_version}
- Once Xcode opens, run the app with
command + R. Make sure to select the correct device (My Mac). - Enable
Safari -> Settings -> Developer -> Extensions: Allow unsigned extensions
Now the extension is ready to use. Data storage is also persistent through sessions. One annoying thing is that the last step of "Allow unsigned extensions" needs to be executed every time you quit and reopen Safari.
I tried to get the extension signed with the following steps. It compiled with no error, but things doesn't change.