View cibc2csv.js
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
function cibc2csv() { | |
var table = document.querySelector('table.smart-account') | |
var csv = '' | |
var head = [] | |
var row = [] | |
// read header cells | |
table.querySelectorAll('thead th').forEach(th => { | |
head.push(`${trim(th.textContent)}`) | |
}) |