When a request is sent to a Web site, I’d like to edit some code to the returned page and the edited page is loaded to the browser. For example, when I send a request to statckoverflow.com, I’d like to change all the letter to upper case in the returned Web page, and then the edited page is loaded to my browser. (It’s just an example to change the case.)
I’m thinking to use a proxy on my machine. Is there any implemented proxy that can do this? Or is there any other way?
The edition operation is going to be complicated. So, the proxy should be able to have some scripts deployed.
If you’re running Windows, you can use Fiddler. Choose Customize Rules from the Tools menu and paste the following code into the
onBeforeResponsefunction in order to replaceultags witholones :Here you can find more Fiddler Script examples.
If you’re running *nix, you can use Privoxy