Open Anri-Lombard opened 1 year ago
On it ;)
Not sure why, but I don't have permissions to push a branch to this repo ?!
Yes, you need to fork this repo
Just updating my Xcode, then I'll be able to convert the extension fully.
This issue relates to #109 just for reference.
I built the extension and it works, but you need to be on the Apple Developer program to distribute it, which I am not.
Perhaps you can label the issue as "help wanted" or we can close it.
I can push the build if it would help
So you just followed this guide https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari
and everything just works?
@Anri-Lombard I have tried what the Apple developer's page says about converting the extension to Safari, but I don't seem to make it work for Mac. I keep getting the same error of being unable to load chatGPT once the I make the search. I'm not sure if you changed some configurations inside Xcode. Here's the project created using the command: xcrun safari-web-extension-converter /path/to/extension
:
ChatGPT for Google.zip
This issue has been linked to a Canny post: Support Safari :tada:
@Anri-Lombard I have tried what the Apple developer's page says about converting the extension to Safari, but I don't seem to make it work for Mac. I keep getting the same error of being unable to load chatGPT once the I make the search. I'm not sure if you changed some configurations inside Xcode. Here's the project created using the command:
xcrun safari-web-extension-converter /path/to/extension
: ChatGPT for Google.zip
The only difference is that I added the --copy-resources flag, after which it ran smoothly. Although, I can't test it out on my Mac since I'm not part of the developer program.
@Anri-Lombard I have tried what the Apple developer's page says about converting the extension to Safari, but I don't seem to make it work for Mac. I keep getting the same error of being unable to load chatGPT once the I make the search. I'm not sure if you changed some configurations inside Xcode. Here's the project created using the command:
xcrun safari-web-extension-converter /path/to/extension
: ChatGPT for Google.zipThe only difference is that I added the --copy-resources flag, after which it ran smoothly. Although, I can't test it out on my Mac since I'm not part of the developer program.
I have tried using that and I keep getting the same error, can you provide a .zip file with the Xcode project so I can test it out?
Sure, @Armandotrsg. Does this work for you?
Sure, @Armandotrsg. Does this work for you?
I get the error when loading into safari that the service_worker
script failed to load
ChatGPT for Google.zip Sure, @Armandotrsg. Does this work for you?
I get the error when loading into safari that the
service_worker
script failed to load
Same problem here.
Made some real progress on this today.
This is what I did and the results:
Any help with 5 and 6 will make massive progress!
You were correct about the script failing, so that might be the major error:
Some additional info is provided by the inspection tools:
I made some progress today. It turns out the zip file https://github.com/wong2/chat-gpt-google-extension/issues/110#issuecomment-1363649293 is converted from the source code of this project, which is incorrect, you need to convert from the built files:
npm run build
xcrun safari-web-extension-converter build/chromium
Then I get these files: ChatGPT for Google.zip
Load it in safari as steps described by @Anri-Lombard, there's finally something shown
Although it's always this load failed error.
But the options page works normally:
You were correct about the script failing, so that might be the major error:
Some additional info is provided by the inspection tools:
I have been doing the same and I keep getting the same error, I believe it's a problem when communicating to the ChatGPT API, because after quickly reviewing the code in the ./src/content-script/ChatGPTQuery.tsx I can see that the problem should be around these part of the code: `if (error === 'UNAUTHORIZED' || error === 'CLOUDFLARE') { return (
Please login and pass Cloudflare check at{' '}
chat.openai.com
{isBraveBrowser() && retry > 0 && (
Still not working? Follow{' '}
Brave Troubleshooting
)}
)
} if (error) { return (
Failed to load response from ChatGPT:
{error}
)
}`
The error is neither "UNAUTHORIZED" nor "CLOUDFLARE" apparently
@Armandotrsg Check my comments above.
I made some progress today. It turns out the zip file #110 (comment) is converted from the source code of this project, which is incorrect, you need to convert from the built files:
npm run build
xcrun safari-web-extension-converter build/chromium
Then I get these files: ChatGPT for Google.zip
Load it in safari as steps described by @Anri-Lombard, there's finally something shown Although it's always this load failed error.
But the options page works normally:
I just spent my whole morning attempting to convert this to safari only to discover that the creator is stuck on the same part as me. Is there any updates?
@lukesmart1 Not yet. Unfortunately, Safari support is not my priority now.
+1 for Safari support 🙏
+1 for Safari support please.
@wong2 I created a safari build in my fork, which may help with this issue
I have tested it and it also supports Automated Build, you can check https://github.com/josStorer/chatGPT-search-engine-extension/commit/e9a6812ddd7c24f37300f8cd1034436ed74e9fa6 and https://github.com/josStorer/chatGPT-search-engine-extension/commit/01f8b64ca89e0d679ed1e35a775f8688dbf56732
In terms of setting the extension version number, my approach may be a bit hacky and needs some improvement
@josStorer Thanks, but I think the installation of Safari extension is beyond the capability of most users.
Just wanted to comment that I am looking for exactly this browser extension but wanted to have this on iPhone. Now afaik the only browser extensions are those for safari. I think it would be really awesome if you guys could make this possible! 👍🏻 Thanks for you work!
If you could somehow add an extension for safari it would be awesome!