Created
September 2, 2015 11:37
-
-
Save Zalvie/c89709f72a3d36a2af7a to your computer and use it in GitHub Desktop.
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
/* | |
Run at https://store.steampowered.com/account/history/ | |
Right click inspect element and load the pages if needed | |
995 : Chroma Case Key | |
215 : Chroma 2 Case Key | |
111 : Falchion Case Key | |
71 : Operation Vanguard Case Key | |
69 : Huntsman Case Key | |
58 : Operation Phoenix Case Key | |
28 : Operation Breakout Case Key | |
11 : CS:GO Case Key | |
5 : Winter Offensive Case Key | |
*/ | |
_keys = {} | |
jQuery('.wth_payment').each(function(i, e) { | |
if((t = e.innerText.trim()) && t.indexOf('Case Key') == -1) return | |
_case = t.match(/(?:\d+ |)(.*?)$/)[1] | |
_keys[_case] = (parseInt(t) || 1) + (_keys[_case] || 0) | |
}) | |
jQuery.each(_keys, function(c, k) { | |
console.log(k, ':', c) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment