Skip to content

Instantly share code, notes, and snippets.

@apetresc
Created July 28, 2015 03:21
Show Gist options
  • Select an option

  • Save apetresc/5fc201bb51cdfbed7c75 to your computer and use it in GitHub Desktop.

Select an option

Save apetresc/5fc201bb51cdfbed7c75 to your computer and use it in GitHub Desktop.
Total set value from MTGStocks.com set page
$('.right').toArray().reduce(function(x, y, i, a) { return parseFloat(y.innerHTML.substring(1)) + x; }, 0.0).toFixed(2);
@apetresc
Copy link
Copy Markdown
Author

Go to a set page on mtgstocks.com (such as http://mtgstocks.com/sets/55) and paste this into the Javascript console to get the total value of the set. Useful when bidding on whole sets on eBay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment