Loading

Paste #pacawpzdz

  1. a = document.getElementsByTagName("a")
  2.  
  3. f = Array.prototype.filter.call(a, x => x.href.includes("/transactions/")).map(x =>
  4.     {
  5.         return fetch(x).then((response) => response.text()).then(text => {
  6.                 const parser = new DOMParser();
  7.                 const htmlDocument = parser.parseFromString(text, "text/html");
  8.                 const section = htmlDocument.getElementById("transaction-details");
  9.                 return section;
  10.             }
  11.         ).then(details => ({
  12.             Title: x.text,
  13.             Datetime: x.parentElement.getElementsByTagName("time")[0].dateTime,
  14.             Category: x.parentElement.parentElement.getElementsByClassName("a b c d e f g h i j k l m n")[0].innerText,
  15.             Value: x.parentElement.parentElement.getElementsByClassName("aq jy lw no np nr ns nt nu nv nw nx ny nz oa mb s")[0].innerText,
  16.             Link: x.href,
  17.             IBAN: details.getElementsByClassName("hw oz")[0].innerText
  18.         }) )
  19.     }
  20. )