If you are tired of typing the same comments into Stack Exchange sites over and over, you can use this add-on to insert any of your frequently written comments with a couple clicks.


  1. Install a user script extension (such as Tampermonkey) for your browser. Greasy Fork maintains a list of user script extensions that are available for various browsers.
  2. Click here to install context-menu.user.js within your user script manager.

Getting started

Trigger a context menu on the field where you write a comment by right-clicking, long-pressing, or command-clicking (depending on your operating system.) A menu will pop up with a list of comments that can be inserted. Click one of them to insert it, or use the "Edit" button to change the comment templates.


  • Right click on an empty comment field, or on the "Add a comment" link to bring up a context menu of comments that can be inserted.
  • Also works for edit notes, flags, and flag handling responses.
  • Does not show a context menu for comment boxes that have been filled in allowing you to use the standard context menu for features like spell check.
  • An import/export text file format
  • Load comments from a URL (Hosting comment templates on Github works great.)
  • Comment templates are stored in user script storage that persists across all Stack Exchange sites (no need to configure your comments per site.)
  • Set comment templates to be available only in specific contexts:
    • Only on specific types of comments (eg. comments on answers)
    • Only for moderators or for non-moderators
    • Only on specific sites (eg. stackoverflow.com)
    • Only for specific tags (eg. Java)
  • Filter comments by keyword
  • Warnings about comment templates that are too long


The following variables are expanded by this code within comments:

  • $SITENAME: The name of the current Stack Exchange site, eg "Stack Overflow"
  • $SITEURL: The domain name of the current Stack Exchange site, eg stackoverflow.com. You usually don't need this variable, you can use links like [editing help](/editing-help) to link to URLs found on every StackExchange site.
  • $MYUSERID: Your user id
  • $MYNAME: Your user name (without spaces for @references)
  • $QUESTIONID: The ID of the question at the top of the page
  • $OPID: The user ID of the person who asked the question
  • $OPNAME: The user name of the person who asked the question (without spaces for @references)
  • $OPREP: The reputation of the person who asked the question
  • $POSTID: The ID of the question or answer for which a comment is being written
  • $AUTHORID: The user ID of the author of the question or answer for which a comment is being written
  • $AUTHORNAME: The user name of the author of the question or answer for which a comment is being written (without spaces for @references)
  • $AUTHORREP: The reputation of the author of the question or answer for which a comment is being written

In addition, Stack Exchange expands links such as [meta], [edit], and [help]. See the documentation for the full list and explanations.

SE-AutoReviewComments compatibility

I authored this project because AutoReviewComments isn't currently maintained and is no longer fully functional. I wanted migration from it to be as painless as possible.

  • The import/export format is very similar. Comment templates exported from SE-AutoReviewComments can be directly imported
  • All SE-AutoReviewComments variables are supported

There are several features of SE-AutoReviewComments that are not implemented here:

  • Displaying extended information about the author
  • "See-through" mode
  • JSONP export
  • Showing the full comment text by default
  • Adding a welcome message to comments for new users
  • Direct extensions for Firefox or Chrome


If you want to suggest changes or report bugs please do so in the Github repository for this project.

1 Answer 1


Version 1.16.0 will focus on moderator flag handling.

Right click on "helpful... | decline..."

You can now right click on these links insert auto comments.

"Other" radio button auto-selected

Previously you had to put in a comment and then click the "other" radio button, now that button is clicked for you when you put in the comment.

New flag handling comment types

  • decline-flag -- Existing, suggests the comment for declining ANY flags
  • helpful-flag
  • decline-flag-very-low-quality -- regex /^Very low quality/
  • helpful-flag-very-low-quality
  • decline-flag-not-an-answer -- regex /^Not an answer/
  • helpful-flag-not-an-answer
  • decline-flag-auto -- regex /\(auto\)/
  • helpful-flag-auto
  • decline-flag-plagiarism -- regex /^Plagiarism/.
  • helpful-flag-plagiarism
  • decline-flag-gai -- regex /\b(generated|chatgpt|chatbot|gpt|gai|ai|aigc|llm)\b/i
  • helpful-flag-gai
  • decline-flag-sock -- regex /\b(sock|sockpuppet)\b/i
  • helpful-flag-sock
  • decline-flag-migration -- regex /\b(move|moved|migrate|migrated|belongs)\b/i
  • helpful-flag-migration
  • decline-flag-custom -- All other custom flags
  • helpful-flag-custom

The default comment templates have been updated with these new classifications. You will need to change the types in your own comment templates to be able to take advantage of them.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .