Created
February 10, 2015 15:25
-
-
Save haykuro/bc432cd2d2ba96de29c0 to your computer and use it in GitHub Desktop.
Get the sum total of X transactions from the Chase.com Online Account History page.
This file contains hidden or 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
// chase_transactions.js | |
var transactions_to_get = 2; | |
var stopNum = 9+(6*(transactions_to_get-1)); | |
$sum = 0; | |
for($i=9;$i<=stopNum;$i+=6) { | |
$foo = parseFloat($($("#DDATransactionDetails_DDAPrepaidTrnxDetailsGrid").find('td').get($i)).text().trim().replace('$', '')); | |
if (!isNaN($foo)) $sum += $foo; | |
} | |
alert("$"+$sum); | |
// chase_transactions.min.js | |
// or minified (as a bookmark): | |
javascript:var transactions = 2;var numTransactionsToGet = 9+(6*(transactions-1));$sum = 0;for($i=9;$i<=numTransactionsToGet;$i+=6) { $foo = parseFloat($($("#DDATransactionDetails_DDAPrepaidTrnxDetailsGrid").find('td').get($i)).text().trim().replace('$', '')); if (!isNaN($foo)) $sum += $foo;}alert("$"+$sum); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment