Reputation: 1411
I'm using the following script within a Chrome extension I made. It replaces "old text" with "new text" of all pages.
document.body.innerHTML = document.body.innerHTML.replace(new RegExp("old text", "g"), "new text");
So far, so good. But want to know how to find/replace the (java)scripts, meta tags and css files in within the tags of the page in the same way.
Upvotes: 2
Views: 1412