feat(manga): read the favourite state off the gallery page itself #8

Merged
rms merged 1 commit from fix/fav-from-page into master 2026-11-28 02:44:35 -06:00
Owner

The favourites mirror is behind (newest mirror id 680193 vs site >700k), so recent favourites never get a star. On a gallery page the DOM is authoritative: nhentai marks the favourite button favorited for the logged-in account, and that now wins over the mirror for the current gallery. Listing pages stay mirror-based. v2.1.4.

The favourites mirror is behind (newest mirror id 680193 vs site >700k), so recent favourites never get a star. On a gallery page the DOM is authoritative: nhentai marks the favourite button favorited for the logged-in account, and that now wins over the mirror for the current gallery. Listing pages stay mirror-based. v2.1.4.
The mirror is only as fresh as its last sync, and it is behind: the newest id in
favourites_seen.json is 680193 while the site is past 700k, so a gallery
favourited recently has no star and no amount of badge work fixes that.

On a gallery page the page is authoritative - nhentai renders the favourite
button as "favorited" for the logged-in account - so that reading wins over the
mirror for the gallery being viewed. Listing pages keep using the mirror, which
is the only thing that can answer for hundreds of thumbnails at once; they will
agree once favsync's next run records the new ids.

v2.1.4.
rms merged commit 5b1ff1edc1 into master 2026-11-28 02:44:35 -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!8
No description provided.