Skip to content

Commit bc8be6d

Browse files
committed
Fix broken timestamp detection in Github Reply Comments. Fixes #149
1 parent 9cd0e73 commit bc8be6d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Github_Reply_Comments/Github_Reply_Comments.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// @updateURL https://github.com/jerone/UserScripts/raw/master/Github_Reply_Comments/Github_Reply_Comments.user.js
1313
// @supportURL https://github.com/jerone/UserScripts/issues
1414
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VCYMHWQ7ZMBKW
15-
// @version 1.0.2
15+
// @version 1.0.3
1616
// @icon https://github.githubassets.com/pinned-octocat.svg
1717
// @grant none
1818
// @include https://github.com/*
@@ -111,7 +111,7 @@
111111
reply.addEventListener("click", function (e) {
112112
e.preventDefault();
113113

114-
var timestamp = comment.querySelector(".timestamp");
114+
var timestamp = comment.querySelector(".js-timestamp, .timestamp");
115115

116116
var commentText = getCommentMarkdown(comment);
117117
commentText = commentText.trim().split("\n").map(function (line) {

Github_Reply_Comments/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ reply button on an comment.
2020

2121
## Version History
2222

23+
* version **1.0.3**
24+
25+
* 🐛 Fix broken timestamp detection ([#149](https://github.com/jerone/UserScripts/issues/149)).
26+
2327
* version **1.0.2**
2428

2529
* 🐛 Fix broken icon url ([#146](https://github.com/jerone/UserScripts/pull/146)).

0 commit comments

Comments
 (0)