Skip to content

Instantly share code, notes, and snippets.

@lukaswoj
Last active February 5, 2017 01:17
Show Gist options
  • Select an option

  • Save lukaswoj/49329a004ae4f2987593058bdb76c66d to your computer and use it in GitHub Desktop.

Select an option

Save lukaswoj/49329a004ae4f2987593058bdb76c66d to your computer and use it in GitHub Desktop.
You can extract into json history of your mBank mortage
var table = {};
table.data = $('#scheduleDetails > div.data > table > tbody > div > div.jspPane > tr > td:nth-child(1)').map(function(x, y){return y.textContent.trim()}).toArray();
table.dataksiegowania = $('#scheduleDetails > div.data > table > tbody > div > div.jspPane > tr > td:nth-child(2)').map(function(x, y){return y.textContent.trim()}).toArray();
table.opis = $('#scheduleDetails > div.data > table > tbody > div > div.jspPane > tr > td:nth-child(3)').map(function(x, y){return y.textContent.trim()}).toArray();
table.kwota = $('#scheduleDetails > div.data > table > tbody > div > div.jspPane > tr > td:nth-child(4)').map(function(x, y){return y.textContent.trim()}).toArray();
table.kwotadosplaty = $('#scheduleDetails > div.data > table > tbody > div > div.jspPane > tr > td:nth-child(5)').map(function(x, y){return y.textContent.trim()}).toArray();
JSON.stringify(table);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment