AO3: Comment Formatting and Preview

Adds buttons to insert HTML formatting, and shows a live preview box of what the comment will look like

These are versions of this script where the code was updated. Show all versions.

  • v4.1 2024-10-12

    comment pages (/works/xxxxx/comments/xxxxx) don't have any of the div wrappers the script was observing for dynamically loaded comment boxes. we're observing one now, so the formatting bar shows up on those comments now too.

  • v4.0 2024-09-29

    now supports the bookmark notes field. the @match list grows and grows but I refuse to just let it run on the entire domain.

  • v3.1 2024-08-27

    fixed issue on works with end notes that caused the actual comment box not getting the formatting buttons, and the end notes being treated like an editable textfield instead

  • v3.0 2024-08-25

    Now works on Summary and Notes when posting or editing a work

  • v2.3 2024-08-19

    I noticed that the script stopped working for all the dynamically loaded reply boxes: inbox replies, threaded replies and editing existing comments. I'm not sure why, but instead of XHR (which seems to be breaking fairly easily) it's now implemented as a DOM listener. Hopefully that's more robust and independent from the methodology AO3 uses to create the reply boxes.
    In addition, the script now also works on /chapters/xxxx where you sometimes get directed instead of /works/xxxx

  • v2.2 2024-03-31

    now supports comments on AO3 News Posts

  • v2.1 2024-03-18

    added @match statement so it will run when viewing works from inside a collection
    added @exclude statements (for post/edit/search work pages) to save the browser some load where it's guaranteed to not be needed

  • v2.0 2024-03-17

    Sticky Comment Box support! For that it adds the button bar, but doesn't offer a preview which would just take up too much space.

  • v1.1 2024-01-06

    slight code cleanup

  • v1.0 2024-01-05