feat(manga): rename to gallery toolbox and add an ht download action #2

Merged
rms merged 1 commit from feat/gallery-toolbox into master 2026-11-28 01:45:32 -06:00
Owner

comicread-queue-all.user.js -> gallery-toolbox.user.js, v2.0.0. SITES table + per-site caps replace the nh-shaped isGallery() guard; adds a download action that posts the gallery URL to the HT queue API and a click-only Status button.

Translate/thumbs behaviour unchanged; localStorage keys deliberately keep their cr-queue-all-* names. The rename needs one manual reinstall in the userscript manager (identity is keyed on @name + @namespace).

bun run ci clean.

comicread-queue-all.user.js -> gallery-toolbox.user.js, v2.0.0. SITES table + per-site `caps` replace the nh-shaped isGallery() guard; adds a download action that posts the gallery URL to the HT queue API and a click-only Status button. Translate/thumbs behaviour unchanged; localStorage keys deliberately keep their cr-queue-all-* names. The rename needs one manual reinstall in the userscript manager (identity is keyed on @name + @namespace). bun run ci clean.
The script was no longer only the translate queue, so it is now Gallery
Toolbox v2.0.0 at src/manga/gallery-toolbox.user.js. Userscript managers key
script identity on @name + @namespace, so the rename needs one manual
reinstall - it will not self-update across the change.

A SITES table replaces the nh-shaped isGallery() guard, and per-site `caps`
decide which controls render:

  ht   download only          (/<type>/<slug>-<id>.html, /reader/<id>.html)
  nh   translate + thumbs      (/g/<id>/)
  ?    translate + thumbs when ComicRead is present (unchanged)

The download action posts the current URL to the HT queue API and toasts the
verdict (queued / already / absent / blocked); a Status button re-reads the
ledger on click rather than polling, so closing the tab cannot cancel an
archive. The endpoint lands in the next commit, so until then the button
reports "Queue failed: HTTP 404".

Translate and thumbs behaviour is unchanged, and the localStorage keys keep
their cr-queue-all-* names on purpose - renaming them would silently drop the
saved toolbar position and thumb toggle. Cmd+drag now binds to the pill
rather than the translate button, which does not render on every site.
rms merged commit bd9037e051 into master 2026-11-28 01:45:32 -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!2
No description provided.