Created
April 18, 2019 22:58
-
-
Save Eunoia/29ca40fd1fbb99cd8c2e16afa07e7fb2 to your computer and use it in GitHub Desktop.
Download files from Wells Fargo Statement Pages
This file contains 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
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