Google Blogoscoped

Forum

"view-source:" command with Google Chrome

mbegin [PersonRank 10]

Thursday, September 25, 2008
11 years ago36,047 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: cs1.cs.nyu.edu/hubert/index.ht ...

mbegin [PersonRank 10]

11 years ago #

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

hebbet [PersonRank 10]

11 years ago #

it works in firefox too

JohnMu [PersonRank 10]

11 years ago #

Here's another one that I use frequently:
view-cache: 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]

11 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

This thread is locked as it's old... but you can create a new thread in the forum. 

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!