Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Github_Reply_Comments/Github_Reply_Comments.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// @updateURL https://github.com/jerone/UserScripts/raw/master/Github_Reply_Comments/Github_Reply_Comments.user.js
// @supportURL https://github.com/jerone/UserScripts/issues
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test 2

// @version 1.0.3
// @version 1.0.4
// @icon https://github.githubassets.com/pinned-octocat.svg
// @grant none
// @include https://github.com/*

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test

Expand Down Expand Up @@ -120,10 +120,13 @@

var newComment = getCommentTextarea(this);

var author = comment.querySelector(".author");
var authorLink = location.origin + (author.getAttribute("href") || "/" + author.textContent);

var text = newComment.value.length > 0 ? "\n" : "";
text += String.format('[**@{0}**]({1}/{0}) commented on [{2}]({3} "{4} - Replied by Github Reply Comments"):\n{5}\n\n',
comment.querySelector(".author").textContent,
location.origin,
text += String.format('[**@{0}**]({1}) commented on [{2}]({3} "{4} - Replied by Github Reply Comments"):\n{5}\n\n',
author.textContent,
authorLink,
timestamp.firstElementChild.getAttribute("title"),
timestamp.href,
timestamp.firstElementChild.getAttribute("datetime"),
Expand Down
4 changes: 4 additions & 0 deletions Github_Reply_Comments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ reply button on an comment.

## Version History

* version **1.0.4**

* 🐛 Fix link to authors with spaces in their name. Fixes ([#150](https://github.com/jerone/UserScripts/issues/150)).

* version **1.0.3**

* 🐛 Fix broken timestamp detection ([#149](https://github.com/jerone/UserScripts/issues/149)).
Expand Down