Created
July 1, 2020 17:59
-
-
Save fastmover/a581e977119d26976bb84107694dfd91 to your computer and use it in GitHub Desktop.
Go to Chrysler Capital's Website, go into Transaction history, change the date range to cover all transactions and set the items per page to the maximum (96). Open JavaScript console and paste this code and press ENTER.
This file contains 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
let total = 0.0; | |
let principal = 0.0; | |
let interest = 0.0; | |
$('#postedPaymentsTable tr > td:nth-child(3)').each(function(row, row2) { | |
const payment = row2.innerHTML.replace('(','').replace(')', '').replace('$', '').replace(',','') | |
if(payment !== '--') { | |
total = total + +payment; | |
} | |
}); | |
$('#postedPaymentsTable tr > td:nth-child(5)').each(function(row, row2) { | |
const payment = row2.innerHTML.replace('(','').replace(')', '').replace('$', '').replace(',','') | |
if(payment !== '--') { | |
principal = principal + +payment; | |
} | |
}); | |
$('#postedPaymentsTable tr > td:nth-child(6)').each(function(row, row2) { | |
const payment = row2.innerHTML.replace('(','').replace(')', '').replace('$', '').replace(',','') | |
if(payment !== '--') { | |
interest = interest + +payment; | |
} | |
}); | |
console.log('Total paid: ', total, '\n', 'Total Prinicipal Paid: ', principal, '\n', 'Total Interest Paid: ', interest, '\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment