Showing the βDone %β on my Audible βlisten historyβ page
I do most of my fiction reading these days with Audible and track my reads via Goodreads. Now Goodreads has a way to update progress in 2 ways:
- Currently ____ % done
- Currently on ____ of XXX
So one is percent based progress update and one is a page based progress update. The page based update works very well for physical books but wonβt work at all for audiobooks. What would work there, is the percent based update.
However, in the audible listen history page each entry looks like this:
audible history - before
This does not have an indication of how much of the book I have finished. It only has how much of the book is left to finish.
Till now, the way I used to update my Goodreads, is via a custom function I had written inside a calculator program I use - Speedcrunch to do the βDone %β calculation. But that would mean that I had to open this program every time and then look at the time left on audible and then generate the βDone %β. This got annoying.
Yesterday I had a brainwave π‘ that the progress bar for each entry actually has the βDone %β data. All I needed to do, was to surface that and Iβd have my answer.
Given I was in Javascript land, this was quite easy to theorize - For each of those entries, I had to pick the value from the progress bar and show it somewhere.
I checked the HTML structure for the div
that I was interested in, and headed over to Claude to assist me with writing this script. You can read the entire transcript here.
Basically:
- Go through all the entries on the listen history page
- Note down the value in the progress bar
- Append to the end of the
3h 11m left
the value from the progress bar.
The result was something like this:
audible history - after
This was enough for me π since it is all I needed, now I can update my Goodreads by just looking at this value on the audible page.
The next part of this, was to make sure that this script ran everytime when I opened the audible listen history page. Claude helped me out with that too with a Firefox addon called Tampermonkey where I can add this as a script with the URL and itβll run it for me - pretty handy! I did that and now whenever I visit the listen history page, I have this data at the ready!
The Tampermonkey script is available here as a GitHub gist in case you want to use it.
Mission success.