Skip to content

machavity/SE-AutoReviewComments

 
 

Repository files navigation

The project is currently not being actively maintained.
If you submit a PR, there's a good chance it'll be merged.


AutoReviewComments

Pro-forma comments for Stack Exchange
Contribute now »

StackApps.com · Contributors

TOC

No more re-typing the same comments over and over!

This script adds a little 'auto' link next to all comments boxes. When you click the link, you see a popup with customizable auto-comments (canned responses), which you can easily click to insert.

This script was inspired by answers to this question on meta. See also here for some history.

Thumbnail

Features

  1. Read your comment before you post it!

    Note that the dialog only inserts the text, it doesn't send the comment, nor does it flag anything; this is so that you can check the text before posting!

  2. Customize the texts

    Simply double click on a comment text or description in order to customize it. Hit the 'reset' button if you screw up. This customization is currently per-site. Note that the "Welcome to $SITENAME$" text is automagically inserted if the user is 'new' (member for less than a week), so you don't need to add that to your custom text (but you can if you want to, see '9' below).

    It is possible to target comments to specific use-cases (Answers, Questions, etc.) - see Import/export section below

    If you need more/less than the default 6 comments, just carry on reading...

  3. Quick user info

    The dialog also includes a mini-summary of the user's activity (because if they haven't been back in months, there's no point writing them a comment).

  4. Automatic notification of new versions

    The script will also notify you if a newer version is created.

  5. Import/export of custom comments

    This helps with transferring custom comments between sites. The export/import 'format' is presented as markdown, so you can post it elsewhere, and let others benefit from your words of wisdom.

    Note that you can also use the Import to create an arbitrary number of comments (the default is 6). If there are too many, you can use the show/hide desc link to gain a bit of space.

    Title prefixes are allowed and permit a comment to be targeted to the associated dialogue (see point 7).

  6. Remote source for comments

    If you get bored with copy/pasting your comments between sites and/or computers, you can use the 'remote' button to define a remote source for your comment texts. See here for more details.

  7. Differentiated comments for questions/answers

    If you prefix your comment title with [Q], it will be only displayed for questions, etc (see below). Non-prefixed comments are always displayed.

    • Closure : "C",
    • CommentQuestion : "Q",
    • CommentAnswer : "A",
    • EditSummaryAnswer : "EA",
    • EditSummaryQuestion : "EQ"

    The expected format for the title prefix (in the import/export dialogue) is: ###[Q] More than one question asked

  8. [type here], [username] & [OP] (& $MYUSERID$)

    If the text [type here] is included in a comment, it will be automatically selected for completion when inserted. [username] will be replaced with the user's name (or just 'user' if nothing was found), and [OP] with the original poster's name (if found, else 'OP'). Also, $MYUSERID$ will be replaced with your user id for the current site.

  9. Customise welcome message

    The default message is "Welcome to $SITENAME$" - which is shown for any 1-week-old users. By clicking on the 'welcome' link at the bottom of the popup, you can opt to change this message, or leave it empty to show no messages at all. You can also 'force' the message for older users on a one-off basis. This is per-site.

    Screenshot

Installation

Mozilla Firefox

The Firefox add-on is deprecated until further notice, because of breaking changes in their security requirements. If you want to take on the update, details are here. Pending that time, use the user script with Grease Monkey.

Google Chrome

Install the extension.

Opera

Install the add-on.

Other browsers, including Safari:

You can download the user script or preview the code.

Here are some useful browser-specific instructions on getting it to work. For more information about user scripts, check out the [tag:script] tag wiki.

Privacy policy

(Because Chrome store wants it)

We track nothing, we record nothing, we know nothing.

Everything happens in your browser.

Credits

All the people who noted bugs and made suggestions in the comments and answers on the Stack Apps page!

About

AutoReviewComments - Pro-forma comments for SE

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 86.6%
  • Python 12.4%
  • HTML 0.6%
  • Batchfile 0.2%
  • Shell 0.1%
  • PowerShell 0.1%