aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--github-open-all-outdated-comments.user.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/github-open-all-outdated-comments.user.js b/github-open-all-outdated-comments.user.js
new file mode 100644
index 0000000..603dda5
--- /dev/null
+++ b/github-open-all-outdated-comments.user.js
@@ -0,0 +1,16 @@
+// ==UserScript==
+// @name GitHub Open All Outdated Comments
+// @namespace com.teddywing
+// @description Opens all outdated pull request comments
+// @match https://*.github.com/*/*/pull/*
+// @version 0.0.1
+// @grant none
+// ==/UserScript==
+
+var outdated_buttons = document.querySelectorAll(
+ '.js-comment-container.outdated-comment:not(.open) .show-outdated-button'
+);
+
+for (var i = 0; i < outdated_buttons.length; i++) {
+ outdated_buttons[i].click();
+}