Question:
How do I edit HTML permanently?
anonymous
2013-10-24 14:49:41 UTC
I know how to edit HTML in webpages in chrome.
Inspect element etc.

But when you refresh the page the changes are lost.

To prove something I need to know how to make this change stick through refreshes. Just locally so I can show through a screenshare.

A google chrome extension would be fantastic. Please respond AS SOON AS POSSIBLE as i only have 15 hours.

Thanks!
Four answers:
graphicconception
2013-10-24 14:58:34 UTC
You need to save the copy of the file you have edited.

I don't use Chrome but I expect there will be a File menu with a Save option.

Save as a .html file

To re-display the file, find where you saved it and double-click it.
?
2013-10-24 15:11:02 UTC
If you want to trick somebody into thinking a webpage has changed, forget about saving it or extensions. As soon as you type the url into your browser and press enter, any changes are gone.



The only way to pull this off is by doing this:

1) install a webserver to your machine (for instance apache)

2) put the edited homepage file as index.html into apache's root document folder

3) open the hidden file c:\windows\system32\drivers\etc\hosts in notepad and add this line:

127.0.0.1 www.thewebsite.com



Now, when you try to go to www.thewebsite.com, the request is redirected to your computer's apache server, which will then serve your edited file.



The result is indistinguishable from the real thing for a layman.



The only problem with this is that image URLs will also get redirected, so you have to save all the graphics of the site before making the change to the hosts file. Browsers usually let you save a page in its entirety, use that to save all the resources, too, not just the HTML code.
?
2013-10-24 14:57:35 UTC
I would think you could just download the page edit it and refresh from your hard drive. it will still load all external links if you wanted You can also edit your host file so when you typed in the web address it will Load from your hard drive and also refresh.

Search your drive for the host file.

Google "edit host file". Or youtube it.

Good luck
anonymous
2014-07-27 07:39:33 UTC
Ehm..

An easy to use software you can use to edit web pages is Kompozer. Link --> http://bitly.com/1rH1VsX

Very useful program!

Good Bye


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...