Initial commit: banking statement download scripts

This commit is contained in:
2026-03-12 11:51:16 +11:00
commit 68c5d561a6
5 changed files with 410 additions and 0 deletions
+53
View File
@@ -0,0 +1,53 @@
# Bank Statement Download Helpers
Browser console scripts to save bank statements as properly named PDF files.
---
## ANZ — `anz-download-statements.js`
### How to Use
1. Log into ANZ Internet Banking → **View statements and notices**
2. Expand all year sections so all statements are visible
3. Open **F12 → Console**
4. Paste the contents of `anz-download-statements.js` and press **Enter**
5. You'll see: `✅ Download helper active!`
6. Click each **Download** button — the PDF saves with a name like `ANZ-Statement-2026-02-February.pdf`
7. Close the blob tab that opens, then click the next Download button
### Output
`ANZ-Statement-YYYY-MM-Month.pdf` (e.g., `ANZ-Statement-2026-02-February.pdf`)
### How It Works
Listens to ANZ's XHR API responses (read-only) and extracts the base64-encoded PDF data from the JSON response. Triggers a file download with a descriptive filename. ANZ's normal flow is unaffected — the blob tab still opens.
---
## Westpac — `westpac-download-statements.js`
### How to Use
1. Log into Westpac Online Banking → **Search for statements**
2. Select the account and date range, then click **Search**
3. Click **Display more** if needed to show all statements
4. Open **F12 → Console**
5. Paste the contents of `westpac-download-statements.js` and press **Enter**
6. You'll see: `✅ Westpac download helper active!`
7. Click each **Download PDF** button — the PDF saves with a proper name instead of opening in a new tab
### Output
`Westpac-AccountName-YYYY-MM-Month.pdf` (e.g., `Westpac-Altitude-Qantas-Black-Card-2026-02-February.pdf`)
### How It Works
Intercepts clicks on the Download PDF links, fetches the PDF using the existing authenticated session, and saves it as a named file download. Prevents the default behaviour of opening the PDF in a new tab.
---
## To Stop
Refresh the page (F5) for either script.