Skip to content

Instantly share code, notes, and snippets.

@designerfuzzi
designerfuzzi / insertReplaceInjection.js
Last active March 9, 2023 22:36
Inject JS as script given by code block or overwrite if already existing, parse out comments and replace __REPLACE__
function codeKeeper() {
function helloWorld(){
console.log("__REPLACE__!");
/* will not show up in injection */
// will not show up in injection as well
};
helloWorld();
}
function insertWorker(skriptIDstring,functionToStringify, replacement) {