AO3: Comment Formatting and Preview
What it does:
Above the comment textbox, adds buttons which will insert HTML code to format text (italics, bold, underline, etc), to insert links or images, or even custom text. It also shows a preview of the comment.
Found at: GreasyFork by escctrl
Typing HTML by hand is a drag. Especially if you're just trying to get your squee on in the comments. That's something the Comment Formatting Options script addressed wonderfully, by letting you insert the HTML at the push of a button. But it hasn't been updated in years to make fixes or improvements, such as the ideas its author dusty had noted on its GreasyFork page.
Recently, a different script was published, which takes dusty's to the next level and adds several nifty features.
Install ⇒ AO3 Comment Formatting and Preview
The smaller new features are additional formatting buttons for lists and paragraphs. As before, you can highlight text within your comment and then click the button, to insert the HTML around it.
And the buttons now show reliably on Inbox messages, while replying to comments, and while editing comments.
The more noticable addition is that there's a GUI for configuration!
Go to any page that has comments, for example by opening a work, or viewing your Inbox (if you have an Ao3 account). In the top menu, there'll be a "Userscripts" option, with a "Comment Formatting Buttons" entry.
In the top section of the GUI, you can pick which of the buttons you want to see or hide, if there are some you'll never use anyways.
At the bottom, you can add your own custom buttons. Follow the step-by-step guide in the GUI. One thing to remember when you pick the icon is that this only works with Font Awesome v4 (which has a limited set of icons available), not with the new v5. So make sure to stay on the v4 page when you pick something.
When you chose an icon, copy its four-letter Unicode into the first field in the script GUI. Then it shows up on your custom button.
The other obvious new feature is that you'll have a Preview field, which'll show how the comment will look like once it's been posted.
... And as far as I can tell, it works nicely on mobile devices. \o/
If you use and enjoy this userscript, also consider giving its author some feedback!