Skip to content

Instantly share code, notes, and snippets.

@n8henrie
Last active January 29, 2022 04:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save n8henrie/38368f045cc9d13186fd to your computer and use it in GitHub Desktop.
Save n8henrie/38368f045cc9d13186fd to your computer and use it in GitHub Desktop.
Bookmarklet to filter Mint transactions by date range
// 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;var destUrl="https://wwws.mint.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","");var endDate=prompt("End Date? Format: MM/DD/YYYY",today_str);destUrl+="&startDate="+startDate+"&endDate="+endDate;if(currentUrl.indexOf("wwws.mint.com")>-1){location.href=destUrl;}else{window.open(destUrl);}})();
var currentUrl = window.location.href;
var destUrl = "https://wwws.mint.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("wwws.mint.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