Skip to content

Instantly share code, notes, and snippets.

@aciccarello
Created September 7, 2018 21:33
Show Gist options
  • Save aciccarello/e18b0734cee4f20bfe533cb811c3f0c7 to your computer and use it in GitHub Desktop.
Save aciccarello/e18b0734cee4f20bfe533cb811c3f0c7 to your computer and use it in GitHub Desktop.
Mint Bookmarklet to load transactions in month
javascript:
(function() {
var month = prompt('Month');
var year = new Date().getFullYear();
var yearInput = prompt(`Year (default ${year})`);
year = yearInput ? '20' + yearInput : (new Date().getFullYear());
var lastDayOfMonth = new Date(Number(year), Number(month), 0).getDate();
window.location.href = `https://mint.intuit.com/transaction.event?startDate=${month}/01/${year}&endDate=${month}/${lastDayOfMonth}/${year}&exclHidden=T`;
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment