Last Updated: February 25, 2016
·
127
· kylehotchkiss

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)
    }   

})();