Re:Show HN: Open AI is not Open – A browser extension
by capableweb on Monday March 27, 2023 @11:49AM
(#35328206)
Well, that would fit in with the usual "You don't need AI for that" as Firefox extensions are mostly (90% of them anyways) compatible with Chrome extensions, as both of them are "Web Extensions" as created by Chromium.
Also, someone correct me if I'm wrong, but I think even Safari uses "Web Extensions" at this point too, so write once, have extensions ready for three platforms. Obviously packaging is different, and they have some idiosyncrasies. But it mostly works alright.
Re:Show HN: Open AI is not Open – A browser extension
by circuit10 on Monday March 27, 2023 @11:51AM
(#35328241)
I extracted the Chrome-only Google Translate extension and loaded it into Firefox and it worked fine with no code changes (I had to add some kind of ID to the manifest though)
Re:Show HN: Open AI is not Open – A browser extension
by taf2 on Monday March 27, 2023 @11:57AM
(#35328318)
Definitely GPT-4 can do that.
Re:Show HN: Open AI is not Open – A browser extension
by izietto on Monday March 27, 2023 @12:04PM
(#35328384)
Can ChatGPT figure out a way to pay 10$ for a Google Developer account in order to publish extensions for it
Re:Show HN: Open AI is not Open – A browser extension
by Tepix on Monday March 27, 2023 @12:33PM
(#35328786)
> write a userscript for Chrome that will replace every occurance of a word1 with word2
here's the script from ChatGPTs response:
// ==UserScript==
// @name Replace Word1 with Word2
// @namespace your-namespace
// @version 1.0
// @description Replaces every occurrence of word1 with word2
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const word1 = "Open AI";
const word2 = '"Open" AI';
const regex = new RegExp(word1, "g");
document.body.innerHTML = document.body.innerHTML.replace(regex, word2);
})();
Need help installing a chrome userscript? Check the multiple answers at
https://stackoverflow.com/questions/5258989/manually-adding-...PS I don't use Chrome myself.
Re:Show HN: Open AI is not Open – A browser extension
by xchkr1337 on Monday March 27, 2023 @01:07PM
(#35329249)
reassigning document.body.innerHTML like that seems like a really bad idea, this should be done using MutationObserver
You could probably get ChatGPT to do that.