Credit where credit is due, this is inspired by ScriptMouse's script but has zero lines of code in common. This script was also a great reference for submitting comments to AO3.
Features:
- sleek-looking comment box with all amenities: drag it around, resize it (on desktop)
- works on mobile, although it does look slightly different (buttons are icon-only)
- comment text is CACHED FOR 1 MONTH as you type
- "Discard" will delete the cached text. "Close" keeps the cached text and only closes the dialog.
- "Post" submits the comment directly from the dialog - no copying around
- select your pseud to comment with
- if you're not logged in, you can comment as a guest. Your entered name and email will be remembered for the next work.
- select if you want to post the comment to the work as a whole, or to a specific chapter (the chapter list will tell you which chapter you're currently scrolled to)
- CACHES ONLY ONE COMMENT TEXT FOR THE ENTIRE WORK i.e. it doesn't save individual texts for each chapter. What you put in while viewing chapter 1 will automatically carry over to when you're viewing chapter 2, until you actually hit the Post button.
- character counter warns you if you're exceeding AO3's limit (although I can't guarantee that AO3's counting logic is correct either)
- insert highlighted text of the fic into the comment at the press of a button
- setting option whether quotes are to be in italics or blockquote
- open/close dialog via a recognizable button on the bottom-right of the screen (sticky, always in view)
- open/close dialog via a keyboard shortcut of your choice (on desktop)
- automatic darkmode
- dialog will remember where you put it, and reopens at the same position
- when submitting the comment, the work page will reload to show you the comment (unless you're posting to a chapter while reading the whole work - I assume you'd rather keep your spot in the fic instead)
- won't interfere while posting or editing your own works
TBA: make it work with my Comment Formatting script (to add the formatting buttons bar)
Feel free to submit ideas or issues in the Feedback section!