No description
Find a file
alexture 0c98641f44 Point updateURL/downloadURL at the Forgejo raw file
The GitHub mirror is stale (1.1), so installed copies never saw newer
versions. Serve updates from origin instead and bump to 1.4.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X4uRGZZ4EpYHA4PNK3x5JY
2026-09-20 16:50:01 +02:00
book-links.user.js Point updateURL/downloadURL at the Forgejo raw file 2026-09-20 16:50:01 +02:00
LICENSE Add README and MIT license 2026-07-27 18:22:51 +02:00
README.md Point updateURL/downloadURL at the Forgejo raw file 2026-09-20 16:50:01 +02:00
specs.md Initial commit: book-links userscript 2026-07-27 18:01:31 +02:00

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

  1. Install Violentmonkey (Chrome, Firefox, Edge).
  2. 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), Waterstones, or Google Books, it:

  1. Extracts the book's ISBN (from the URL or page content) and, as a fallback, title/author.
  2. Checks whether the book is available on:
    • Waterstones — skipped if you're already on Waterstones
    • Anna's Archive
  3. 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.fr and amazon.com product pages (/dp/*)
  • Google Books (books.google.com/books?id=…, google.com/books/edition/…, and the .fr equivalents)

Notes

  • Uses GM_xmlhttpRequest to 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.