How do I keep changes made by the browser console?

Asked

Viewed 69 times

0

Hi, I was looking at the code of some websites on the Internet through the console and making some changes to see what was going on, and it got to the point where I wanted to save all these changes, even just for me. (since I know that on the site server this is impossible...)

The problem is that when I reload the site, it replaces what I edited with what comes from the server (which makes total sense) but this way there is no way to know how it would react loading that document that I edited.

That said, let’s get down to business:

It is possible to update a site so that it loads the code I edited instead of the one coming from the server?

Is it possible to upload javascript documents I have on my machine directly on the site I am accessing? (i.e., a better technique than copying everything and pasting everything on the console)

I appreciate the help and remember that I just want to make these changes in the site I received and which is in the browser, I know that theoretically everything I said is possible to do (which is one of the reasons not to trust anything client-side) but I have no idea how.

  • one of the solutions is you point the desired domain via HOSTS file from your machine to another server. On this server you would bypass the files, changing only the desired ones via programming - another solution would be to make (or find) an extension for your browser, which makes or keeps the changes locally - extensions have the power to change content from any site (locally).

  • yes it is annoying to make changes and they are not saved, but for your luck, it is possible to save these changes in & #Xa formats;"WORKSPACES", a tool used in GOOGLE CHROME, has a very explanatory video, watch and understand this function: > CLICK HERE AND WATCH THE VIDEO! Good luck on your project!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.