AO3: Comment Formatting and Preview

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

יש גרסאות של סקריפט זה עם קוד מעודכן. הצג את כל הגרסאות

  • v4.1 12-10-2024

    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 29-09-2024

    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 27-08-2024

    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 25-08-2024

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

  • v2.3 19-08-2024

    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 31-03-2024

    now supports comments on AO3 News Posts

  • v2.1 18-03-2024

    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 17-03-2024

    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 06-01-2024

    slight code cleanup

  • v1.0 05-01-2024