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.
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?
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.
Well if you’re just changing HTML then when first run the script you could do:
Then when you’re done and want to ‘reset’ just do: