Get chase credit card rewards points for current month.
Run in console. You may need to the piece inside setTimeout() again if it doesn't fire or takes too long.
var transactions = [];
var i = 0;
jQuery(".summary a.expander").each(function( i ) {
transactions.push( this );
});
var getTransactions = (function getTransactions() {
if ( i < transactions.length ) {
var $transaction = jQuery( transactions[i] )
i++
$transaction.click();
console.log( i + " / " + transactions.length );
setTimeout(function() {
getTransactions();
}, 100);
} else {
var total = 0;
console.log("Waiting 20 seconds for chase...")
setTimeout(function() {
jQuery( "td:contains('Total rewards') + td" ).each(function( i ) {
total += parseFloat( jQuery(this).text() );
});
alert( total );
}, 30000)
}
})();
Written by Kyle Hotchkiss
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Tags
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#