Skip to content

Commit b1404d9

Browse files
committed
🐛 Fixed linking @users on GitHub Gists (fixes jerone#13);
1 parent 4f8c58d commit b1404d9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Github_Comment_Enhancer/Github_Comment_Enhancer.user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,8 +817,9 @@
817817
}).join("\n");
818818

819819
var text = newComment.value.length > 0 ? "\n" : "";
820-
text += String.format('@{0} commented on [{1}]({2} "{3} - Replied by Github Comment Enhancer"):\n{4}\n\n',
820+
text += String.format('[**@{0}**]({1}/{0}) commented on [{2}]({3} "{4} - Replied by Github Comment Enhancer"):\n{5}\n\n',
821821
comment.querySelector(".author").textContent,
822+
location.origin,
822823
timestamp.firstElementChild.getAttribute("title"),
823824
timestamp.href,
824825
timestamp.firstElementChild.getAttribute("datetime"),

Github_Comment_Enhancer/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Add features to enhance comments & wiki on [Github](https://github.com) and comm
3434
* Added option to choose the character that precedes the list;
3535
* Added option to choose the characters that makes up a horizontal line;
3636
* Fixed running on GitHub Gists and inline comments on commits (fixes https://github.com/jerone/UserScripts/issues/43);
37+
* Fixed linking @users on GitHub Gists (fixes https://github.com/jerone/UserScripts/issues/13);
3738
* Searching snippets improved;
3839
* Improve table code;
3940
* Added missing tooltips;

0 commit comments

Comments
 (0)