How do I use terminal to convert Chrome Extensions to Safari?

I am trying to use Kami on Safari, so I am trying to convert its Chrome extension into a Safari one. I have never done this before, and I have never used Terminal or Xcode before, so I have no idea how this works, but my expectation was that all I had to do was type in the command xcrun safari-web-extension-converter (path to extension without parentheses) and it would instantly convert it and add it into Safari, but it soon became clear to me that is not the case. Now before you start linking this link to Apple Developer Documentation here, I have already read it and I am still confused. I have no experience with terminal or Xcode, so if anybody will explain how to do it, please explain it to me in the simplest terms and preferrably with commands that I can simply copy and paste, or which need little to no modification. So continuing with my problem, I saw a few options appear: --project-location, --rebuild project, --app-name, --bundle-indentifier, --swift, --objc, --iOS-only, --macOS-only, --copy-resources, --no-open, --no-prompt, --force, --help. I assumed I would have to type in scrub safari-web-extension-converter --project-location (path to where I want to save the new project) (path to original chrome extension), but that is not the case. Anyway, what I am trying to do is to make a version of Kami that is usable in Safari for my personal use, and then import it into Safari. I want to know how exactly to type the command, because it seems like there needs to be only one dash instead of two, which is confusing for me. Also, I need to know what exactly the command will do once I run it, step by step.

MacBook, macOS 13.0

Posted on Oct 27, 2022 11:34 AM

Reply
6 replies

Oct 28, 2022 3:46 AM in response to MrHoffman

None of the links helped but I found a very helpful YouTube video that solved everything. For some reason, I had to type in this command xcrun /Applications/Xcode.app/Contents/Developer/usr/bin/safari-web-extension-converter path/to/extension instead of the one all the links provide. I tried it and it works. https://www.youtube.com/watch?v=V5UPRseAhq4 Here is the link to the video if anybody ever stumbles upon this page and needs a solution to the problem.

Oct 27, 2022 12:26 PM in response to davidgordiienko

davidgordiienko wrote:

I am trying to use Kami on Safari, so I am trying to convert its Chrome extension into a Safari one.


?


I would either find an appropriate Safari extension or use an alternate browser.


you are not going to casually code the back-end interface...



for your third party app—if in doubt search the developers website or contact their:

Support/Help/FAQ/Known issues/compatibility/updates/uninstaller


Contact a third-party vendor - Apple Support

Contact a third-party vendor - Apple Support



Kami Help Center



Oct 27, 2022 12:36 PM in response to woodmeister50

I have installed a few Safari extensions before, and I understand that they are kind of like mini apps in a way, but apparently you can convert existing Chrome extensions into Safari ones. I don't know if you'd need to get them on the App Store or anything, but I'm just confused as to how to use the command. According to the guide at Apple Developer Documentation, it seems like I'm doing everything correctly. I just never did anything like this before, so I don't know why I am getting an error telling me to "please provide a path to a web extension to convert". I don't know how far into the files I'm supposed to go. So far, I only went as far as to Library/Application Support/Google/Chrome/Profile 2/Extensions/ecnphlgnajanjnkcmbpancdjoidceilk, but I don't know if I'm supposed to go deeper into the files. In the first screenshot is where the path leads, and the second one is what I get when I go into the folder inside of the 1st screenshot.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I use terminal to convert Chrome Extensions to Safari?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.