title: Replace text in a website
body: <p>I'm looking to replace text in a webpage (any webpage I want to run it on) using JavaScript.  I'm not an expert in JavaScript, so I am sort of lost. If I can help it I would like to avoid jQuery.</p>
  
  <p>Through Google, I've found <a href="https://stackoverflow.com/questions/5558613/javascript-replace-text-in-the-html-body" title="this">this</a> stackoverflow question. But when I inject <code>document.body.innerHTML = document.body.innerHTML.replace('hello', 'hi');</code> into a webpage it sort of messes the page up. It seems to make the page revert to basic text and formatting. </p>
  
  <p>Also, I'm wondering if the regex code from <a href="https://stackoverflow.com/questions/15686500/replace-all-text-matched-except-in-alt-or-href-attribute" title="here">here</a>, could be used. Again, I really am not sure how to use it. What it would do is replace only webpage text - not links or filenames.</p>
  
  <p>I'm using Google Chrome incase that matters.</p>