-
-
Save AALMA/cb5871d0ceaa6fcce686bf926b4b937f to your computer and use it in GitHub Desktop.
Bookmarklet to filter Mint transactions by date range
This file contains hidden or 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
// mint_date_range.js | |
// https://mint.lc.intuit.com/questions/948537-mint-faq-how-can-i-view-transactions-within-a-specific-date-range | |
// jsmin <mint_date_range.js | |
// | |
// Copy the minified version below into a bookmarklet | |
// javascript:(function(){var currentUrl=window.location.href,destUrl="https://mint.intuit.com/transaction.event?",today=new Date,today_str=today.getMonth()+1+"/"+today.getDate()+"/"+today.getFullYear(),startDate=prompt("Start Date? Format: MM/DD/YYYY",today_str),endDate=prompt("End Date? Format: MM/DD/YYYY",today_str);destUrl+="&startDate="+startDate+"&endDate="+endDate,currentUrl.indexOf("mint.intuit.com")>-1?location.href=destUrl:window.open(destUrl);})(); | |
var currentUrl = window.location.href; | |
var destUrl = "https://mint.intuit.com/transaction.event?"; | |
var today = new Date(); | |
var today_str = today.getMonth() + 1 + "/" + today.getDate() + "/" + today.getFullYear(); | |
var startDate = prompt("Start Date? Format: MM/DD/YYYY", today_str); | |
var endDate = prompt("End Date? Format: MM/DD/YYYY", today_str); | |
destUrl += "&startDate=" + startDate + "&endDate=" + endDate; | |
if (currentUrl.indexOf("mint.intuit.com") > -1) { | |
location.href = destUrl; | |
} else { | |
window.open(destUrl); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment