Bookmarklet to get page from Google cache

Written . Tagged Bookmarklets, JavaScript.

Every now and then, you follow a link from a search result listing and find it is no more. Rather than go back and click the “Cached” link (on Google result listings), use this bookmarklet: Get from Google cache.

I’ve assigned it the bookmark keyword “cached”.

After writing the bookmarklet and before writing this post, I googled it, and found (not surprisingly) that it’s been done before. However, the other solutions (e.g. Google Cache Hacking, Cache Bookmarklets) seem unnecessarily complicated. Perhaps stripping the protocol and messing with hashes was required, once.