Nothing in the web platform lets you use raw (or TCP/UDP/etc) sockets. At most you could do VPN-style networking and use a bridge to talk to the rest of the internet; that bridge needs someone to host it.
Yea, Chrome DevTools has a pretty print option too, but if they ran it through something like closure compiler it renames all the vars. Would like to browse source on github or comparable -- also see the history :)