3

Automatically add OP's name in comments on StackExchange sites

Converts [user] in a comment to be posted to the OP's username. Originally created to allow comment snippets with [user] included to be copy-pasted.

Installation

Developed & tested with TamperMonkey on Chrome.

1

3 Answers 3

2

Should probably exclude chat so that it isn't running unnecessarily.

2

When pasting into an answer, it'll take the name of the OP on the question, not the answerer.

GIF

2
  • This was actually intended, but I will change the behavior when I find some time Commented Oct 23, 2018 at 12:05
  • I edited the code so if you put "user" it says the name on the post you are commenting and if you put "USER" it will put the OP's. Commented Oct 24, 2018 at 14:48
1

It doesn't take into account the International SO sites.

Should add:

// @match https://*.stackoverflow.com/* 
0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.