Comment Templates Context Menu, an auto-comments user script

Trending 1 year ago

If you are tired of typing nan aforesaid comments into Stack Exchange sites complete and over, you tin usage this add-on to insert immoderate of your often written comments pinch a mates clicks.

Installation

  1. Install a personification book hold (such arsenic Tampermonkey) for your browser. Greasy Fork maintains a database of personification book extensions that are disposable for various browsers.
  2. Click present to instal context-menu.user.js wrong your personification book manager.

Getting started

Trigger a discourse paper connected nan section wherever you constitute a remark by right-clicking, long-pressing, aliases command-clicking (depending connected your operating system.) A paper will popular up pinch a database of comments that tin beryllium inserted. Click 1 of them to insert it, aliases usage nan "Edit" fastener to alteration nan remark templates.

Features

  • Right click connected an quiet remark field, aliases connected nan "Add a comment" nexus to bring up a discourse paper of comments that tin beryllium inserted.
  • Also useful for edit notes, flags, and emblem handling responses.
  • Does not show a discourse paper for remark boxes that person been filled successful allowing you to usage nan modular discourse paper for features for illustration spell check.
  • An import/export matter record format
  • Load comments from a URL (Hosting remark templates connected Github useful great.)
  • Comment templates are stored successful personification book retention that persists crossed each Stack Exchange sites (no request to configure your comments per site.)
  • Set remark templates to beryllium disposable only successful circumstantial contexts:
    • Only connected circumstantial types of comments (eg. comments connected answers)
    • Only for moderators aliases for non-moderators
    • Only connected circumstantial sites (eg. stackoverflow.com)
    • Only for circumstantial tags (eg. Java)
  • Filter comments by keyword
  • Warnings astir remark templates that are excessively long

Variables

The pursuing variables are expanded by this codification wrong comments:

  • $SITENAME: The sanction of nan existent Stack Exchange site, eg "Stack Overflow"
  • $SITEURL: The domain sanction of nan existent Stack Exchange site, eg stackoverflow.com. You usually don't request this variable, you tin usage links for illustration [editing help](/editing-help) to nexus to URLs recovered connected each StackExchange site.
  • $MYUSERID: Your personification id
  • $MYNAME: Your personification sanction (without spaces for @references)
  • $QUESTIONID: The ID of nan mobility astatine nan apical of nan page
  • $OPID: The personification ID of nan personification who asked nan question
  • $OPNAME: The personification sanction of nan personification who asked nan mobility (without spaces for @references)
  • $OPREP: The estimation of nan personification who asked nan question
  • $POSTID: The ID of nan mobility aliases reply for which a remark is being written
  • $AUTHORID: The personification ID of nan writer of nan mobility aliases reply for which a remark is being written
  • $AUTHORNAME: The personification sanction of nan writer of nan mobility aliases reply for which a remark is being written (without spaces for @references)
  • $AUTHORREP: The estimation of nan writer of nan mobility aliases reply for which a remark is being written

In addition, Stack Exchange expands links specified arsenic [meta], [edit], and [help]. See the documentation for nan afloat database and explanations.

SE-AutoReviewComments compatibility

I authored this task because AutoReviewComments isn't presently maintained and is nary longer afloat functional. I wanted migration from it to beryllium arsenic painless arsenic possible.

  • The import/export format is very similar. Comment templates exported from SE-AutoReviewComments tin beryllium straight imported
  • All SE-AutoReviewComments variables are supported

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

  • Displaying extended accusation astir nan author
  • "See-through" mode
  • JSONP export
  • Showing nan afloat remark matter by default
  • Adding a invited connection to comments for caller users
  • Direct extensions for Firefox aliases Chrome

Github

If you want to propose changes aliases study bugs please do truthful successful nan Github repository for this project.

More
close