Skip to content

Instantly share code, notes, and snippets.

@jabyrd3
Created June 15, 2016 03:45
Show Gist options
  • Save jabyrd3/1b9893758ef2f545203d3351cd9e09a0 to your computer and use it in GitHub Desktop.
Save jabyrd3/1b9893758ef2f545203d3351cd9e09a0 to your computer and use it in GitHub Desktop.
// usage: paste this function into your browser in chrome devtools to use this.
// click on the year links to open up the statement subsections for each year.
// this function will call window.open with the url of your statement for each link.
// This is gonna open up a browser tab for each statement link available; it might
// melt your computer.
(function() {
$('#debugpanel').remove();
$('body').prepend('<div id="debugpanel" style="height: 200px; width: 100vw; position: fixed; top: 0; background-color: black; color:white;overflow: scroll;"></div>');
$('a[title="Chase Online Statement, opening save/open window."]').each(function(item) {
var goto = this.href.split('t:')[1];
var ref = goto.indexOf('/s');
$('#debugpanel').append(`<li>${ref} : ${goto.substr(ref, ref.length).replace("');", '')}</li>`);
// eval(goto);
window.open(goto.substr(ref, ref.length).replace("');", ''));
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment