Your question was unclear for me. But the following should work
$( document ).ready(function() {
document.body.innerHTML = document.body.innerHTML.replace(/target string/g, "replacement string");
});
1
solved Find a string in the body of the page [closed]