Skip to content

Instantly share code, notes, and snippets.

@bloudermilk
Last active December 10, 2015 11:58
Show Gist options
  • Save bloudermilk/4430946 to your computer and use it in GitHub Desktop.
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
// 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