|
|
@ -553,6 +553,11 @@ function init() { |
|
|
|
|
|
|
|
if (pageDetect.isPR() || pageDetect.isIssue()) { |
|
|
|
linkifyIssuesInTitles(); |
|
|
|
|
|
|
|
markUnread.setup(); |
|
|
|
|
|
|
|
addOPLabels(); |
|
|
|
new MutationObserver(addOPLabels).observe(select('.new-discussion-timeline'), {childList: true, subtree: true}); |
|
|
|
} |
|
|
|
|
|
|
|
if (pageDetect.isRepoRoot() || pageDetect.isRepoTree()) { |
|
|
@ -574,6 +579,7 @@ function init() { |
|
|
|
if (diffElements) { |
|
|
|
new MutationObserver(removeDiffSigns).observe(diffElements, {childList: true, subtree: true}); |
|
|
|
} |
|
|
|
addDiffViewWithoutWhitespaceOption(); |
|
|
|
} |
|
|
|
|
|
|
|
if (pageDetect.isPR() || pageDetect.isIssue() || pageDetect.isCommit()) { |
|
|
@ -582,10 +588,6 @@ function init() { |
|
|
|
showRealNames(); |
|
|
|
} |
|
|
|
|
|
|
|
if (pageDetect.hasDiff()) { |
|
|
|
addDiffViewWithoutWhitespaceOption(); |
|
|
|
} |
|
|
|
|
|
|
|
if (pageDetect.isCommitList()) { |
|
|
|
markMergeCommitsInList(); |
|
|
|
} |
|
|
@ -600,16 +602,6 @@ function init() { |
|
|
|
enableCopyOnY.setup(); |
|
|
|
} |
|
|
|
|
|
|
|
if (pageDetect.isPR() || pageDetect.isIssue()) { |
|
|
|
markUnread.setup(); |
|
|
|
} |
|
|
|
|
|
|
|
if (pageDetect.isIssue() || pageDetect.isPR()) { |
|
|
|
addOPLabels(); |
|
|
|
|
|
|
|
new MutationObserver(addOPLabels).observe(select('.new-discussion-timeline'), {childList: true, subtree: true}); |
|
|
|
} |
|
|
|
|
|
|
|
if (pageDetect.isMilestone()) { |
|
|
|
addMilestoneNavigation(); |
|
|
|
} |
|
|
|