Last active
December 10, 2015 11:58
-
-
Save bloudermilk/4430946 to your computer and use it in GitHub Desktop.
A simple JavaScript snippet you can use to see how much money you've spent on Uber cars
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
// Instructions: | |
// 1. Visit https://clients.uber.com/#!/dashboard | |
// 2. Click the "Show all trips" link | |
// 3. Paste the following into the console | |
// 4. Gasp in horror as you see how much money you've spent on Uber | |
_($("td.num:contains($)")).map(function (el) { return $(el).text().substring(1) }).map(Number).reduce(function(memo, num) { return memo + num; }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment