by Tepix · 3y ago · 0 comments
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.