Skip to content

Instantly share code, notes, and snippets.

@philfreo
Last active August 23, 2021 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philfreo/cd60710b28a0d16212e0015e308a7500 to your computer and use it in GitHub Desktop.
Save philfreo/cd60710b28a0d16212e0015e308a7500 to your computer and use it in GitHub Desktop.
Wealthfront Accounts List
javascript:
document.querySelectorAll('.dashboard-path-global-graph-component,header,.dashboard-path-container-component,.dashboard-loan-card-component,.dashboard-global-sidebar-component,footer,.dashboard-external-account-external-account-card-component-action-links-container,[data-testid=autopilot-learn-more],[aria-label="Link an account"],[data-testid="add-an-account-btn"]').forEach((x) => {
x.remove()
});
document.querySelectorAll('button[title=goals]')[0]?.parentElement?.parentElement?.remove()
document.querySelectorAll('.dashboard-path-global-graph-header-component-retirement-value-label-text')[0]?.parentElement?.parentElement?.remove();
/*
accountsData = [];
document.querySelectorAll('.dashboard-external-account-external-account-card-component,.dashboard-wealthfront-account-card-component').forEach((acct) => {
const category = acct.parentElement.querySelector('.dashboard-external-account-account-group-component-header').innerText.split("\n")[0];
let value = parseFloat(acct.querySelector('.dashboard-external-account-external-account-card-component-account-value,.dashboard-wealthfront-account-card-component-account-value').innerText.substr(1).replaceAll(',', ''), 10);
if (category === 'Liabilities') value *= -1;
accountsData.push([
category,
acct.querySelector('.common-external-account-name-component-account,.dashboard-wealthfront-account-card-component-institution').innerText,
acct.querySelector('.common-external-account-name-component-institution,.dashboard-wealthfront-account-card-component-account-name').innerText,
value,
]);
});
console.table(accountsData);
tsv = accountsData.reduce((tsv, row) => { return tsv += row.join("\t") + "\n"; }, "\n");
console.log(tsv);
*/

Turn the code into a bookmarklet (or just paste everything after javascript: into your Console) to turn your Wealthfront dashboard into:

  1. A more print-friendly version of all your accounts
  2. A version of account names & values that you can copy (from the console) and paste into a spreadsheet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment