title: How to reset webpage after altered content via JavaScript?
body: <p>I have a JS script that changes content of webpages. I use this script in the console in firebug. When i run the script again with some new data, the old stuff that was altered previously is still there.</p>
  
  <p>How can i reset the whole the page to its original condition whenever i execute my script, so that the old script generated stuff gets replaced by the new one?</p>
  
  <p>In have tried to do a refresh before the main function that changes the content, but the refresh is so slow that it deletes both the old altered content and the new.</p>