Skybots Bank exercise
Download a year of statements in one click
Twelve statements over two pages, by hand, every January. Today you'll get ChatGPT to write a bookmarklet: a button on your bookmarks bar that does it all.

eDocuments
JTPick a year, then Download
Recent downloads
Full download history
- Click your bookmark on the eDocuments page.
- It works through every page by itself.
- All 12 statements, saved to your computer.
You don't need to know any JavaScript: ChatGPT writes it. Your part is describing the job well, and checking the result.
Move with ← → or the buttons below. Hover an animation to pause it or drag its timeline, and press R to replay it.
What you need
Three things, and you're ready.
Google Chrome
with the bookmarks bar on
ChatGPT, free
at chatgpt.com, or Claude
chatgpt.com
The bank login
from your trainer, in class
✓ Signed in
- Chrome, with the bookmarks bar showing. Press Ctrl + Shift + B, or ⌘ + Shift + B on a Mac.
- A free ChatGPT account at chatgpt.com. Claude, at claude.ai, works too.
- The Skybots Bank login. Your trainer gives it to you in class.
Nothing here is real. The bank, the customer and every statement are made up, so there is nothing you can break.
Do it once by hand
You can't automate a job you haven't watched. Do it once on eDocuments, and notice three things.

eDocuments
JTRecent download
- Choose 2025. The list reloads.
- Download one. It takes a moment to arrive.
- Go to page 2. Only six fit on a page.
Those three things are exactly what trip a script up, so they go straight into your prompt.
Copy the page for ChatGPT
ChatGPT can't see your screen. Copy the page's HTML, the code behind it, so ChatGPT knows what everything is called.

eDocuments
JT- Right-click the page, then Inspect.
- Right-click the top line,
<html lang="en">. - Copy, then Copy outerHTML.
On a real site, the HTML holds whatever is on the screen: names, account numbers, balances. Follow your firm's rules before pasting it into a chatbot, and blank out anything confidential.
Write your prompt
Paste the prompt into chatgpt.com, put the page's HTML over its last line, and send.
What can I help with?
+ the page's HTML
javascript:(()=>{const panel=document.createElement('div'); panel.style.cssText='position:fixed;top:16px;right:16px;z-index:99999';
- Paste the prompt below into the message box.
- Paste the page's HTML over its last line.
- Send it.
- Copy the one line ChatGPT gives back.
Write me a bookmarklet for Google Chrome. THE PAGE The eDocuments page of Skybots Bank, a practice banking website for training. It lists my monthly bank statements. Its HTML is at the end of this message. THE JOB Download every statement for one year. - The year dropdown changes the list. The list takes about a second to reload. - Only 6 statements fit on a page. There are page buttons at the bottom. - Each statement has a Download button. The file takes about a second to arrive. WHAT I WANT - When I click the bookmark, a small panel opens in the top-right corner. I can drag it by its title bar, and I can still use the page behind it. - The panel has a button for each year in the year dropdown, and a Download button. - While it works, the panel shows what it is doing, like "Downloading 5 of 12", with a progress bar. - At the end it shows how many statements it downloaded, and a Close button. - Make it look clean and modern: a white card with rounded corners and a soft shadow. RULES - Don't use alert, confirm or prompt. Everything happens in the panel. - Only use the year dropdown, the page buttons and the downloads. Don't click anything else. - Give me the whole bookmarklet as ONE line starting with javascript: so I can paste it into a bookmark. Use semicolons, and no // comments. THE PAGE'S HTML [paste the page's HTML here]
Why the prompt works
Each of its five parts answers something ChatGPT would otherwise have to guess.
ChatGPT can't see your screen
The reload, six a page, the slow file
Vague asks get plain pop-up boxes
A bookmark only holds one line
The real names of everything
The same five parts work for any website
Leave a part out and ChatGPT will guess, usually wrong. Only the details change from one website to the next.
Make the bookmark
ChatGPT replies with one long line starting with javascript:. That line is
your bookmarklet.
+ the page's HTML
javascript:(()=>{const panel=document.createElement('div'); panel.style.cssText='position:fixed;top:16px;right:16px;z-index:99999';
Add page
- Show the bookmarks bar: Ctrl + Shift + B, or ⌘ + Shift + B on a Mac.
- Right-click the bookmarks bar, then Add page.
- Name it Download statements.
- Paste the line into URL.
- Save. It's on your bar.
A new version from ChatGPT goes into the same bookmark: right-click it, choose
Edit, and paste over the old line. The address bar won't work, because Chrome strips
the javascript: off.
Run it
Back on eDocuments, click your new bookmark and let it work.

eDocuments
JTPick a year, then Download
skybots-lab.pages.dev wants to
Download multiple files
- Click your bookmark. Your panel opens.
- Pick 2025, then Download.
- Chrome asks about multiple files: choose Allow.
- Watch it finish, both pages, then open Downloads.
Fix it with ChatGPT
It rarely works first time, and that's normal. Go round the loop until it does.
▶Run it
Click your bookmark
!Something's off
Note what happened
?Tell ChatGPT
Paste the fix-it prompt
↻New version
Edit the bookmark, paste
✓ It works
It didn't work. This is what happened: [what you saw: no panel / nothing happened / only 6 files / the wrong year] This is the red error from the Console: [paste the error here, or write "no error"] Please fix it and give me the whole bookmarklet again, as one line.
- To find the error, press F12, click Console, click your bookmark again, and copy any red text.
- Only one file arrived? Chrome blocked the rest. Click the blocked download icon at the right of the address bar, choose Always allow, and run it again.
Check your work
Finishing isn't the same as being right. Open the files and look.
Statement date: 31 January 2025
January opens at 8,642.17
December closes at 56,228.68
Try next
One upgrade worth asking ChatGPT for, then take it to work.
One ZIP, not twelve files
Every PDF in a single download
1 ZIP: 12 PDFs and a summary
Ask ChatGPT to improve it
- One ZIP instead of twelve files, named with the year.
Use it at work
- The same five parts work on any site you use: the page, the job, what you want, the rules, and the HTML.
- Start with something that only downloads, like reports, before anything that submits or changes data.
The final answer
If you're stuck, your bookmarklet doesn't work, or you want to compare answers, click the button below to view the final answer.
- Stuck?
- Doesn't work?
- Want to compare?
It opens in a new tab, so these steps stay open here.
Ours takes a shortcut, so it won't look like yours: it reads the statement list the page has already loaded instead of clicking through the pages, and it can pack everything into one ZIP with a summary of the balances.