No description
Anna's Archive and Waterstones now search by ISBN first and only fall back to title/author when that comes back with an explicit no-results, since a specific edition's ISBN can be unindexed even though the book exists under another edition. Chez Mon Libraire is added as a third source (isbn-based search, French no-results/found text patterns). Results are cached per site+isbn via GM_getValue/GM_setValue for 14 days to cut down on repeat requests. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| book-links.user.js | ||
| LICENSE | ||
| README.md | ||
| specs.md | ||
book-links
A Violentmonkey userscript that shows where else you can get a book while you're browsing one — Anna's Archive and Waterstones — as a small floating widget in the corner of the page.
Install
- Install Violentmonkey (Chrome, Firefox, Edge).
- Install the script from the raw file: book-links.user.js — Violentmonkey will prompt to install it.
The script auto-updates itself from this repo (via @updateURL), so you don't need to reinstall it when it changes.
What it does
On a book page on Bookshop.org, Amazon (.fr/.com), or Waterstones, it:
- Extracts the book's ISBN (from the URL or page content) and, as a fallback, title/author.
- Checks whether the book is available on:
- Waterstones — skipped if you're already on Waterstones
- Anna's Archive
- Shows a small widget in the bottom-right corner with a ✓ link if found, a ✗ if confirmed not found, or a
?link if it couldn't be verified (e.g. JS-rendered search results) — closeable with the × button.
Supported sites
bookshop.org/p/books/*waterstones.com/book/*amazon.frandamazon.comproduct pages (/dp/*)
Notes
- Uses
GM_xmlhttpRequestto query Anna's Archive and Waterstones directly from the page, bypassing CORS. - Availability checks are best-effort text matching against search results, not an official API — the
?state means "couldn't confirm either way, here's the search link."
License
MIT — see LICENSE.