To convert the code from the GitHub repository you provided into a format that is compatible with Firefox, the following steps could be taken:
Replace instances of "chrome" with "browser" in the code. In the Chrome extension API, the "chrome" namespace is used to access various features and functionality, but in Firefox, this namespace is replaced with "browser". Therefore, all instances of "chrome" in the code would need to be replaced with "browser" to ensure that the code is compatible with Firefox.
Replace any references to Chrome-specific APIs with their Firefox equivalents. The Chrome extension API includes a number of features and APIs that are specific to Chrome, and these would need to be replaced with the corresponding Firefox APIs in order to ensure that the code is compatible with Firefox.
Update the manifest file to use the correct format for Firefox. The manifest file is a JSON file that specifies various metadata and configuration information for the extension, and the format of this file is different for Chrome and Firefox. Therefore, the manifest file in the code would need to be updated to use the correct format for Firefox.
Test the code to ensure that it is functioning properly in Firefox. Once the code has been converted and updated to be compatible with Firefox, it would be necessary to test the code to ensure that it is functioning properly in Firefox and that all of the desired features and functionality are working as expected. This may involve installing the extension in Firefox and testing it with a variety of inputs and scenarios to ensure that it is working properly.
Overall, these steps would involve significant modifications to the code in order to make it compatible with Firefox. However, by following these steps and carefully reviewing and testing the code, it should be possible to convert the code
This is the same answer format of essentially any deep technical question I've given it.
Essentially: 1. Do the thing that is the first thing that is mentioned and that any first year student learning about thing hears about the thing. 2. Do some more complicated things in a hand-wavey manner that solves the problem. 3. Check to see the problem is solved. If it is not, do some more of the hand waving in step 2. 4. There may be other problems to check for in the future even if this solution works. Who knows! But I solved your problem.
Is it bad I think this is a decent high level algorithm? As in, the user then filling in details or asking the assisting model to fill them in via subsequent prompts seems like a solid start to a problem solving session.
Sure, but because it's a chat bot, you can then ask: "Cool, so how would you do the thing you just told me to do?"
I just pasted the manifest and the main script and asked it how to port it. It was basically a one-shot. Here's the port: https://github.com/unflxw/chat-gpt-google-extension The README includes the conversation I had in order to port it. Close to zero thinking necessary. I have never worked on a browser extension before.
I'd really love to see a shootout between two people who weren't familiar with extension programming (but who have some programming knowledge) be given that task (port this github repo for a chrome extension to work and be installable on Firefox) with one person just using normal google-fu and the other person doing what you did, and watch how long it takes them.
I actually wrote a few VS Code extensions recently starting from zero knowledge of the package formatting for them, and I wonder how much different my time spent doing it would have been if I would have just asked this bot to help. There was a lot of regex involved and hell just using chatGPT to explain to me some of the ways I could be matching strings with whatever format of regex tmLanguage uses would have probably saved me a lot of googling.
This is super cool. Curious how much work it was to discern the `[blabbery omitted]` sections. Were you generally able to tell right away that they were nonsense? Or did you have to spend significant time following dead ends it recommended?
Comments (149) 37 threads
Show all comments
Showing thread 6 of 37
To convert the code from the GitHub repository you provided into a format that is compatible with Firefox, the following steps could be taken:
Overall, these steps would involve significant modifications to the code in order to make it compatible with Firefox. However, by following these steps and carefully reviewing and testing the code, it should be possible to convert the codeEssentially:
1. Do the thing that is the first thing that is mentioned and that any first year student learning about thing hears about the thing.
2. Do some more complicated things in a hand-wavey manner that solves the problem.
3. Check to see the problem is solved. If it is not, do some more of the hand waving in step 2.
4. There may be other problems to check for in the future even if this solution works. Who knows! But I solved your problem.
Continue this thread — 3 replies
I just pasted the manifest and the main script and asked it how to port it. It was basically a one-shot. Here's the port: https://github.com/unflxw/chat-gpt-google-extension
The README includes the conversation I had in order to port it. Close to zero thinking necessary. I have never worked on a browser extension before.
I actually wrote a few VS Code extensions recently starting from zero knowledge of the package formatting for them, and I wonder how much different my time spent doing it would have been if I would have just asked this bot to help. There was a lot of regex involved and hell just using chatGPT to explain to me some of the ways I could be matching strings with whatever format of regex tmLanguage uses would have probably saved me a lot of googling.
Continue this thread — 2 replies
The README includes the conversation I had in order to port it. Close to zero thinking necessary. I have never worked on a browser extension before.
Maybe this could be used on VSCode as a pair programming partner.