Skip to content

Instantly share code, notes, and snippets.

@Zalvie
Created September 2, 2015 11:37
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 Zalvie/c89709f72a3d36a2af7a to your computer and use it in GitHub Desktop.
Save Zalvie/c89709f72a3d36a2af7a to your computer and use it in GitHub Desktop.
/*
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