maksverver / astral-codex-eleven

A Chrome browser extension to speed up loading of posts on https://www.astralcodexten.com/ by replacing the comments widget.
MIT License
4 stars 2 forks source link

Simplify comment api #13

Closed Pycea closed 4 months ago

Pycea commented 4 months ago

Simplify the comment api to remove processHeader, and instead pass ExtCommentComponents directly to processComment. This allows options to access/modify the state of the components directly.

An example use case would be for relocating the reply button (when emulating the old blog style), since hooking up an alternate button requires access to the parent comment component so children can be inserted correctly.

Pycea commented 4 months ago

Dunno how that happened, merged everything in now.