Skip to content

Instantly share code, notes, and snippets.

@HelveticaScenario
Last active December 30, 2015 06:59
Show Gist options
  • Save HelveticaScenario/7793092 to your computer and use it in GitHub Desktop.
Save HelveticaScenario/7793092 to your computer and use it in GitHub Desktop.
Humble Bundle purchased game counter
/*
Description: JS snippet to determine how many games you have in your humble bundle library
for a given platform. it won't filter duplicates (it does happen, but its rare) and it
will only count the ones in the main list(s), which appear to only be the drm free ones,
so those purchased via bundles that only give you steam keys, such as the humble THQ
bundle or the humble jumbo bundle, wont be included in the count.
Instructions: navigate to your main humble bundle library, select one of the platform
filters (eg. Windows, Mac OS X), open the browser console (in Chrome on mac the
shortcut is cmd-alt-j), and copy this snippit into the prompt and press
enter. the count will appear as the result. ENJOY!
*/
$('#regular_download_list').children('.row').filter(function(i){
return $(this).css('display') !== "none";
}).length;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment