Skip to content

Instantly share code, notes, and snippets.

@Eunoia
Created April 18, 2019 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Eunoia/29ca40fd1fbb99cd8c2e16afa07e7fb2 to your computer and use it in GitHub Desktop.
Save Eunoia/29ca40fd1fbb99cd8c2e16afa07e7fb2 to your computer and use it in GitHub Desktop.
Download files from Wells Fargo Statement Pages
function download_pdf(a_tag){
var link = document.createElement('a');
link.href = $(a_tag).data('url');
link.download = "Trust "+$(a_tag).text()
link.dispatchEvent(new MouseEvent('click'));
}
$('.documents').eq(0).find('[data-url]').map(function(){ download_pdf(this) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment