Google Blogoscoped

Forum

"view-source:" command with Google Chrome

mbegin [PersonRank 10]

Thursday, September 25, 2008
15 years ago37,057 views

Internet Explorer used to let you do this, but now it looks like we can do it again with Google Chrome...

Just type: view-source: before any full URL.

view-source:http://cs1.cs.nyu.edu/hubert/index.html

mbegin [PersonRank 10]

15 years ago #

Okay...I guess it works with FF too.

hebbet [PersonRank 10]

15 years ago #

it works in firefox too

JohnMu [PersonRank 10]

15 years ago #

Here's another one that I use frequently:
view-cache:http://URL

This shows you the cached version of the URL (which you need to have accessed beforehand) – including the full server HTTP headers. It's also fairly trivial to see whether or not the URL is gzip-encoded (which uses less bandwidth).

For me, changing the URL to add "view-cache:" (or "view-source:" – hey, it has line numbers too!) is faster than re-trying it with live-http-headers or wget/curl :)

John

JohnMu [PersonRank 10]

15 years ago #

Ah, so much for automatic URL recognition :-)

Make sure you use http : / / in the URL and do not leave a space between "view-cache" or "view-source:" and the URL.

John

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!