fix(manga): self-heal the badge and make its state inspectable #12

Merged
rms merged 1 commit from fix/badge-fallback into master 2026-11-28 03:02:53 -06:00
Owner

Pill is mirrored to data-gt with a :has()-guarded ::after fallback so a stripped element still renders; a throwing card no longer aborts the pass; and window.__gtSnapshot() reports verdicts/hosts/pills/style so the next report is ground truth. v2.1.8.

Pill is mirrored to data-gt with a :has()-guarded ::after fallback so a stripped element still renders; a throwing card no longer aborts the pass; and window.__gtSnapshot() reports verdicts/hosts/pills/style so the next report is ground truth. v2.1.8.
The element badge vanished once and I could not see why from here, so this stops
guessing:

* the glyph string is mirrored onto the card's data-gt, and a :has()-guarded
  ::after draws the same pill whenever the element is absent - if the page strips
  it, the badge still shows until the next re-apply puts the element back;
* one card that throws no longer aborts the whole pass and leaves the rest of the
  grid unmarked;
* window.__gtSnapshot() reports verdicts / hosts / pills / style-presence, which
  separates "the API said nothing", "the CSS is gone" and "the DOM was
  replaced" in one line typed into the console.

v2.1.8.
rms merged commit 5c60197c05 into master 2026-11-28 03:02:53 -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!12
No description provided.