Skip to content

Commit e79915d

Browse files
committed
Added: Link to google cache copy, thanks to #17
1 parent b3489f4 commit e79915d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/hn.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ var hn = {
455455
'<li><a data-filter="site:'+ domain +'" class="add-filter">Filter&nbsp;'+ domain +'</a></li>'+
456456
'</ul></div></div>');
457457

458-
// add sharing options
459-
$flag.after(' | <a class="share-story" href="#">share</a>');
458+
// add sharing and cache
459+
$flag.after(' | <a href="http://webcache.googleusercontent.com/search?q=cache:'+ $link.attr('href') +'">cached</a> | <a class="share-story" href="#">share</a>');
460460

461461
$('.share-story', $details).click(function(ev){
462462
ev.preventDefault();

0 commit comments

Comments
 (0)