Skip to content

Instantly share code, notes, and snippets.

@icodesido
Created June 6, 2012 11:21
Show Gist options
  • Save icodesido/2881341 to your computer and use it in GitHub Desktop.
Save icodesido/2881341 to your computer and use it in GitHub Desktop.
Change comment count text on the fly
if(jQuery('.discussion .toolbar:contains("Open for comments")').length){
commentCount = jQuery('.content-comment-count');
commentCount.text(commentCount.text().replace('Comments','Jump to comments'));
}
Variants:
1 Jump to comments
2 See all comments
3 Read the comments
4 Readers' comments
5 Join the conversation
6 Open for comments
7 Join the discussion
Testing:
Standard
http://www.guardian.co.uk/tv-and-radio/tvandradioblog/2012/may/12/the-bridge-season-one-episodes-seven-eight
Blogpost
http://www.guardian.co.uk/uk/2012/jun/06/unpaid-jubilee-stewards-prescott-exploitation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment