Repository navigation
Add a View on Goodreads button on Amazon book pages - #18
Merged
Merged
Conversation
An Amazon listing already has the ISBN; jumping to the matching Goodreads page should not require leaving the product page to search. Co-authored-by: Cursor <cursoragent@cursor.com>
ion05
marked this pull request as ready for review
September 7, 2026 05:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
On Amazon.com book product pages, BunnyLol now draws a View on Goodreads button under the title. It reads the labelled ISBN (or JSON-LD
isbn) locally and navigates togoodreads.com/book/isbn/…for that same book. Search pages and listings without an ISBN are left alone.Verified in Chrome for Testing with
dist/loaded unpacked: the button appears on Project Hail Mary and opens the matching Goodreads page.Amazon (button under the title):
After click (Goodreads for the same book):
Which AGENTS.md invariant does this touch?
11 (user text reaches the DOM only via
textContent/createElement). The button label is ours; the ISBN is never written into the page as HTML. The content script uses a shadow root andcreateElement/createElementNS.Also privacy: PRIVACY.md no longer claims there are no content scripts.
Checks
pnpm typecheckpassespnpm testpassespnpm buildpassesdist/unpacked and exercised the change in a real browserthrough the built rules, not just
buildRulesdesign/tokens.css, no literal hex orfont-size: Npxin the UI sheets, and nevercolor: var(--accent)The Amazon button lives in a shadow root on amazon.com, so it cannot
@importtokens.css. Values are copied by hand the same waygo.htmlalready does.Stacked PRs
Base:
master. Not stacked.Made with Cursor