Skip to content

Instantly share code, notes, and snippets.

@jboesch
Created February 13, 2011 19:50
Show Gist options
  • Save jboesch/825024 to your computer and use it in GitHub Desktop.
Save jboesch/825024 to your computer and use it in GitHub Desktop.
// Step 1: Include jQueryify bookmarklet from http://www.learningjquery.com/2006/12/jquerify-bookmarklet
// Step 2: Plug this into your console.
var total = [];
$('.cur_val[headers=gross]').each(function(){
var t = $.trim(this.innerHTML.replace('$', '').replace(',',''));
/* PayPal has two selectors of .cur_val[headers=gross] that point to the same amount.
We only want the one with a space in it, cause tht tells us whether or not it's CAD/USD */
if(t.indexOf(' ') > -1){
total.push(t);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment