Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CarlosSolrac/16b0eadb0cca55c071d34a130c005619 to your computer and use it in GitHub Desktop.
Save CarlosSolrac/16b0eadb0cca55c071d34a130c005619 to your computer and use it in GitHub Desktop.
wells fargo ability to download all bank statements
Wells fargo's new statement viewer sucks to use because due to the way they set it up.
Each time you click a statement PDF, you have to re-navigate the entire section including accounts and dates which takes FOREVER.
Doing this for 3-4 accounts for 12 statements is an multi-hour grind of horrible user experience which should instead take 30 seconds.
The following code snippet will make it so you can get every PDF on that page without hassle (y'know.. like every other website in the world)
To use this, do the following each time you have the links on-screen that you want to download:
1) In Chrome browser, navigate to your wells fargo statement viewer and pull up the set of PDFs you want to view
2) Press F12 to open the developer tools and click the tab at the bottom that says 'Console'
3) Paste the following code into the developer console, then press ENTER
$("a[data-pdf='true']").each(function(i,el) {$(el).attr('href', $(el).attr('data-url'));});
Now that this is done, you can right click on each link and click Save As... to save each PDF (or use a download manager to get them all)
UPDATE: see @trevorfox's suggestions in the comments of this gist for another method that lets you do alternate things.
@CarlosSolrac
Copy link
Author

CarlosSolrac commented Feb 13, 2019

$("a[data-pdf='true']").each(function(i, el) {
    // if you want to be able to right-click, download link
    $(el).attr('href', $(el).attr('data-url'))
    .attr('download', $(el).text())

    // if you want to open each PDF in a new window
    var dataUrl = $(el).attr('data-url')
    window.open( dataUrl, '_blank');
});

by trevorfox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment