How can I edit a js file sent by the server before it gets to my browser?
Posted
by pstone
on Stack Overflow
See other posts from Stack Overflow
or by pstone
Published on 2010-04-27T22:40:02Z
Indexed on
2010/04/27
22:43 UTC
Read the original article
Hit count: 142
During a normal browsing session I want to edit a specific javascript file before the browser receives since once it gets there it's impossible to edit. Is there are any tool for this? For what I need it I can't just save it and edit it on my disk.
I'm ready to learn how to program it myself but if anyone can point out more or less what I have to do I'd be very grateful. I'd have to intercept the packets until I have the whole file while blocking the browser from receiving it any part of it, then edit it manually and forward it to the same port.
I don't think I can do this by just using pcap, I've read a bit about scapy but I'm not sure if it can help me either.
Thanks in advance.
© Stack Overflow or respective owner