Skip to content

Instantly share code, notes, and snippets.

@og24715
Created September 17, 2019 06:36
Show Gist options
  • Save og24715/19dbfb01eac1882a6b6b2fa86e90bb55 to your computer and use it in GitHub Desktop.
Save og24715/19dbfb01eac1882a6b6b2fa86e90bb55 to your computer and use it in GitHub Desktop.
Check the total amount shopped at Steam.
alert([...document.querySelectorAll("#main_content > table > tbody > tr > td:nth-child(2)")].filter(element => element.innerText.includes('Dead by Daylight')).map(element => element.parentElement.querySelector('.wht_total').innerText.replace('¥ ', '').replace(',', '')).reduce((a, b) => Number(a) + Number(b)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment