While Moneta supports data exports in CSV, some places (like card blocks) cannot be exported. This script parses the table's HTML and allows you to read your data programmatically, export it as json or csv.
Usage:
// any variable name can be used
const table = /*<contents of script>*/
table.data // parsed data
table.csv(delimiter = ",") // returns data as CSV
table.json(indentation = 2) // returns data as JSON
table.download("csv" | "json", ...parameters) // downloads file in specified format, accepts same parameters in same order as the methods above