結論
javascript:location.href='https://webcache.googleusercontent.com/search?q=cache:%27+escape(document.location.href)
詳細
内部的には以下のように即時関数を実行しているようなことになっています。
前述のブックマークレットではシングルクォートが %27
にエスケープされています。これはブックマークに登録すると自動で変換してくれた結果です。Bookmarklet の登録時には %27
は '
で記述されていても問題ありません。
( function() { document.location.href = 'https://webcache.googleusercontent.com/search?q=cache:' + escape(document.location.href) } )();
これを Minify(単に改行やスペースを削っただけ)すると以下のようになります。
javascript:(function(){document.location.href='https://webcache.googleusercontent.com/search?q=cache:%27+escape(document.location.href)})();
Bookmarklet 上で不要・冗長なものを削除していくと、冒頭の結論になります。