Skip to content

Commit

Permalink
Issue-comments: Ignore sort reactions block. Fixes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Sep 23, 2018
1 parent b0d88cb commit 50ca1e9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions github-issue-comments.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name GitHub Toggle Issue Comments
// @version 1.2.3
// @version 1.2.4
// @description A userscript that toggles issues/pull request comments & messages
// @license MIT
// @author Rob Garrison
Expand Down Expand Up @@ -47,6 +47,10 @@
// ZenHub addon active (include ZenHub Enterprise)
hasZenHub = $(".zhio, .zhe") ? true : false,

exceptions = [
"ghsc-sort-block" // sort reactions block (github-sort-reactions.user.js)
],

settings = {
// example: https://github.com/Mottie/Keyboard/issues/448
title: {
Expand Down Expand Up @@ -374,7 +378,11 @@
regexEmoji = /(:.*:)|[\u{1f300}-\u{1f64f}\u{1f680}-\u{1f6ff}\u{1f900}-\u{1f9ff}]/gu,
regexWhitespace = /\s+/g,

comments = $$(".js-discussion .timeline-comment-wrapper"),
comments = $$(".js-discussion .timeline-comment-wrapper")
.filter(comment => {
const classes = comment.className.split(" ");
return exceptions.some(ex => classes.includes(ex));
}),
len = comments.length,

loop = () => {
Expand Down

0 comments on commit 50ca1e9

Please sign in to comment.