Skip to content

Instantly share code, notes, and snippets.

@lstomberg
Created November 20, 2019 19:19
Show Gist options
  • Save lstomberg/fbe0b32a7f01f5ae39eba9255af19acf to your computer and use it in GitHub Desktop.
Save lstomberg/fbe0b32a7f01f5ae39eba9255af19acf to your computer and use it in GitHub Desktop.
TamperMonkey script to hide all accounts with a $0.00 balance on Mint.com's overview page
// ==UserScript==
// @name Hide $0.00 account balances on Mint
// @namespace http://tampermonkey.net/
// @version 1.0
// @description This script cleans up the Cash and Credit Card accounts list on the overview page by hiding all accounts showing a balance of $0.00.
// @author Lucas Stomberg
// @match https://mint.intuit.com/overview.event
// @grant none
// ==/UserScript==
(function() {
'use strict';
function hideZeroBalance() {
let nodes = document.evaluate('//li[*/*/text()="$0.00"]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
for (let i = 0, length = nodes.snapshotLength; i < length; ++i) {
nodes.snapshotItem(i).remove();
}
}
window.setInterval(hideZeroBalance,1000)
hideZeroBalance()
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment