@Saorsa - Are you familiar with the basics? Git, Javascript, Chrome extension source code, etc.?
If so, look at the repo in the OP, particularly at the PR diffs to add variables. Mine was pretty short and sweet.
- The
background.js changes are the ones that add the variable. The other changes are to add visual instructions on how to use it. No big deal if you’re keeping things to yourself, but IMHO critical if you decide to add a PR to the extension for all to enjoy.
- The book ID shows over 200 times on the page, so I’m sure you can find somewhere to call it from. I see one place it’s called
book_id that should serve your needs. Note that it’s not innerText like the others, but a simple ID with a given value:
- The ISBN isn’t named explicitly, so it might take some stripping to pull it. That’s a little outside my current skill-set, unfortunately. Perhaps your CSV extract can give some clues as to the ID’s to call in the script.
Further help:
I don’t have particular need for this variable, so I’m probably not going to test it out myself. No guarantees, but I could maybe carve out some time after the New Year if there’s still interest.
Also, you could always reach out to the creator and see if they’re willing to add it to the extension permanently. It looks like the repo is somewhat active.
Best of luck.