Commit Graph

24 Commits

Author SHA1 Message Date
Stardream 8501c5683e feat(Bangumi_Topic_Share): add OAuth-backed share cards for collections, subject comments, and lists, bump version to 6.0
Core new features:

- Add Bangumi OAuth flow with token storage, refresh, menu commands, and settings-panel auth controls

- Move optional AI tag configuration into GM storage and expose it in the customize-panel settings tab

- Add full /subject/* matching plus subject metadata extraction and API fallback for NSFW-limited data

- Preserve richer HTML when truncating card content, including quote and inline formatting

- Limit ordinary content images in cards to avoid overly tall share images while keeping emoji/stickers inline

Collection and comment sharing:

- Add share cards for subject comment rows with API-enriched user rating, tags, and collection timestamps

- Add share cards for collection member pages and user browser list comments across anime/music/game/real/book lists

- Add share cards for the current user's collection comment from the subject collection panel

- Reuse subject covers, subject types, collection statuses, user tags, and infobox-derived fallback tags

Card rendering refinements:

- Add subject/blog topic title handling so single-subject blog cards promote the subject as the main title

- Improve nested reply layout, rating display, cover-image spacing, and API fallback notices

- Carry quote/body/link styling into the isolated iframe capture and improve spoiler mask overlay alignment

- Expand injected share buttons and mutation observers for subject comments, collection pages, browser lists, and Rakuen frames
2026-04-23 00:06:03 +10:00
Stardream f21f59d50e fix(Bangumi_Topic_Share): fix share button injected into sliderContainer, bump to 5.4
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 03:56:56 +10:00
Stardream 3dce60c351 fix(Bangumi_Topic_Share): fix link color and image gradient edge artifacts, bump version to 5.3
- Fix link color regression: query content-area links first to avoid inheriting nav link colors
- Add guard against transparent/invalid computed color values
- Fix image overlay gradient edge lines in html2canvas: use rgba(x,x,x,0) instead of transparent, extend overlay 1px beyond image edges, remove overflow:hidden

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 03:34:27 +10:00
Stardream 2e7c49f7fc feat(Bangumi_Topic_Share): add API-based episode page support with cover image, episode name, and subject tag
- Fetch episode data via /v0/episodes/{id} to get episode name (name_cn fallback to name)
- Fetch subject data via /v0/subjects/{subject_id} for cover image and subject name
- Display subject cover using person-page card layout; badge shows episode number
- Subject name used as tag; cache prevents duplicate API calls
- Bump version to 5.2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 03:13:12 +10:00
Stardream 943fb422cf chore(Bangumi_Topic_Share): bump version to 5.1
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 03:07:18 +10:00
Stardream cf49c8f348 fix(Bangumi_Topic_Share): fix screenshot link color/decoration, hidden elements leaking into capture, and spoiler mask alignment
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 02:58:32 +10:00
Stardream 477d7863b3 chore(Bangumi_Topic_Share): update script authorship
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 02:28:38 +10:00
Stardream 682b253125 feat(Bangumi_Topic_Share): major rewrite with reply sharing, API tags, and character/person page support, bump version to 5.0
Core new features:
- Add per-reply share buttons on all posts with nested reply chain display
- Refactor into _doShareCard() shared renderer supporting both topic and reply flows
- Screenshot via isolated iframe to fix Chrome html2canvas hang
- Inline images (emoji, stickers, content images) into base64 before capture
- Add spoiler mask toggle button
- Overlay now scrollable with action buttons below card

Character/person page support:
- Add @match rules for /ep/*, /character/*, /person/*
- Show character/person image panel with name + career badge in card header
- Rakuen character pages: fetch CV and work names via Bangumi API v0
- Rakuen/regular person pages: fetch role tags via /v0/persons/{id}/characters,
  fallback to /v0/persons/{id}/subjects with 44-role staff priority ordering
- Person career badge sourced from API career field with careerMap translation
- No-image fallback: render name + badge + divider without image panel
- Deduplicate subject tags by both subject id and staff role

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 02:25:19 +10:00
Stardream 712828c2a9 feat(Bangumi_Topic_Share): add subject/topic/* match and blog entry support, bump version to 4.13
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 19:29:36 +10:00
Stardream 998d77382f feat(Bangumi_Topic_Share): add blog entry support with related subjects as tags, bump version to 4.12
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 19:08:54 +10:00
Stardream 27797d81ea feat(Bangumi_Topic_Share): add Rakuen support via outer-frame iframe monitoring, fix share button placement to main post actions bar, use inline SVG share icon, bump version to 4.11
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 18:36:58 +10:00
Stardream 4cea895013 fix(Bangumi_Topic_Share): trim bottom transparent strip and exclude catfish plugin content, bump version to 4.10
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 06:01:31 +10:00
Stardream be507ee72f fix(Bangumi_Topic_Share): fix extra whitespace on right/bottom of screenshot, bump version to 4.9
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 05:31:27 +10:00
Stardream 4676b97acf fix(Bangumi_Topic_Share): use isolated iframe for capture to fix Chrome screenshot hang, bump version to 4.8
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 05:21:41 +10:00
Stardream bb6d42cde5 fix(Bangumi_Topic_Share): reduce capture area padding to minimize screenshot border, bump version to 4.7
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 04:14:15 +10:00
Stardream 4b1dd38d76 feat(Bangumi_Topic_Share): add animated custom tooltip for action buttons, bump version to 4.6
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 04:09:36 +10:00
Stardream 3ceaa89cf8 feat(Bangumi_Topic_Share): replace static tags with dynamic group name and reply count, bump version to 4.5
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 03:53:58 +10:00
Stardream 7d6fdcfc83 fix(Bangumi_Topic_Share): fix repeated screenshot failure caused by Live2D WebGL canvas and bump version to 4.4
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 03:04:41 +10:00
Stardream 2624c729af style(Bangumi_Topic_Share): unify light/dark card styles and bump version to 4.3
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 21:13:34 +10:00
Stardream de7fd91875 chore(Bangumi_Topic_Share): bump version to 4.2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 20:47:16 +10:00
Stardream 4f4951bec7 feat(Bangumi_Topic_Share): add dark theme support for share card
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 20:45:42 +10:00
Stardream 007c069983 chore(Bangumi_Topic_Share): bump version to 4.1
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 19:47:16 +10:00
Stardream 1330f6a58b fix(Bangumi_Topic_Share): exclude .forum_category elements from share card content
Temporarily hides .forum_category elements before extracting innerText to
prevent third-party plugin components from appearing in the card body.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 18:49:24 +10:00
Stardream abc4c4a263 feat(Bangumi_Topic_Share): add share card script with copy/download/text actions
New userscript for Bangumi topic pages. Generates a styled share card via
html2canvas, with icon buttons to copy image to clipboard, download image,
copy share text, or close the overlay. Button placement moved to the stable
#columnInSubjectB sidebar to avoid conflicts with other components.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 18:28:51 +10:00