fix(manga): keep the badge visible, and readable #9

Merged
rms merged 1 commit from fix/badge-visibility into master 2026-11-28 02:59:33 -06:00
Owner

Colour rules were still anchor-scoped after the host moved to the card, so the badge stayed default-coloured at 11px - now .gt-* at 14px bold with border/shadow. And Svelte hydration was wiping the marks: verdicts are cached and re-applied via a debounced MutationObserver with no extra requests. v2.1.5.

Colour rules were still anchor-scoped after the host moved to the card, so the badge stayed default-coloured at 11px - now .gt-* at 14px bold with border/shadow. And Svelte hydration was wiping the marks: verdicts are cached and re-applied via a debounced MutationObserver with no extra requests. v2.1.5.
Two separate faults, both mine:

* The colour rules were still anchor-scoped (a.gt-lib::after) while v2.1.3 moved
  the host to the card element, so they matched nothing and the badge rendered in
  the plain default colour at 11px. Rules are now .gt-* with a 14px bold face, a
  border and a shadow so it reads over a bright thumbnail.
* Marks vanished a second after appearing: nhentai's Svelte grid hydrates and
  replaces its nodes, dropping our classes, and the scroll rescan could not see
  it (same anchor count, none of them marked). Verdicts are now cached in
  lastFound and re-applied by a debounced MutationObserver with no extra
  requests; a lookup only fires when an id we have no verdict for appears.

v2.1.5.
rms merged commit c9f6bd69be into master 2026-11-28 02:59:33 -06:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rms/userscripts!9
No description provided.