Skip to content

Instantly share code, notes, and snippets.

@mitcho
Created June 11, 2013 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitcho/5753794 to your computer and use it in GitHub Desktop.
Save mitcho/5753794 to your computer and use it in GitHub Desktop.
JS bookmarklet for getting a summary display of how many abstracts have how many reviews submitted, on LinguistList EasyAbs's rating summary page. Requires jQuery to be loaded first, for example using a jQuerify bookmarklet. Also might require a modern JS implementation like a recent Firefox (uses array comprehensions).
javascript:(function(){counts={1:0,2:0,3:0,4:0};jQuery('table.ratesummary%20tr:not(:nth-child(1))').each(function(){counts[jQuery(this).find('td:nth-child(4)').text().replace(/\s/g,'').length]++;});alert([c+':'+counts[c]%20for%20(c%20in%20counts)].join(','));})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment