Created
June 11, 2013 01:00
-
-
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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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