Skip to content

Instantly share code, notes, and snippets.

@Dehax
Created February 3, 2017 22:32
Show Gist options
  • Save Dehax/732c7de9e8faedb1932d375034f9b8f6 to your computer and use it in GitHub Desktop.
Save Dehax/732c7de9e8faedb1932d375034f9b8f6 to your computer and use it in GitHub Desktop.
Steam Market Total Counter at https://steamcommunity.com/market/
var sum = 0.0;
document.querySelectorAll('.market_home_listing_table:first-child .market_recent_listing_row .market_listing_my_price .market_table_value .market_listing_price span span:last-child').forEach(function (item, i, arr) {
sum += parseFloat(item.innerText.slice(1).replace(/,/, '.'));
});
alert(sum);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment