3 ms·
> Firefox only. If someone wants to bring this to Chromium, go for it. You could probably get ChatGPT to do that.
by yosito 4y ago
> Firefox only. If someone wants to bring this to Chromium, go for it.
You could probably get ChatGPT to do that.
- capableweb 4y agoWell, 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.
- circuit10 4y agoI 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)
- taf2 4y agoDefinitely GPT-4 can do that.
- izietto 4y agoCan ChatGPT figure out a way to pay 10$ for a Google Developer account in order to publish extensions for it
- Tepix 4y ago> 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-a-userscript-to-google-chrome https://stackoverflow.com/questions/5258989/manually-adding-... PS I don't use Chrome myself.
- xchkr1337 4y agoreassigning document.body.innerHTML like that seems like a really bad idea, this should be done using MutationObserver
- kevincox 4y agoYup. It will recreate all elements. At the very least it will break event listeners which will break most sites. It will probably do about 8 other things that break many sites.