Repository navigation
Conversation
fregante
commented
Sep 29, 2026
| observe('.markdown-body > p:only-child', maybeHide, {signal}); | ||
| } | ||
|
|
||
| // This should NOT be made dynamic via observer, it's not worth updating the lowQuality count for fresh comments |
Member
Author
There was a problem hiding this comment.
I did have to use the observer because the new issue page loads the content later after dom-ready.
I made two changes to support this:
- the count is updated on the fly via svelte component
- the "show" action adds a class to the container rather than looping hidden comments
- the feature is then unloaded on "show"
Comment on lines
+50
to
+58
| // If the person is having a conversation, then don't hide it | ||
| const author = $('a[data-testid="avatar-link"]', comment).getAttribute('href')!; | ||
| // If the first comment left by the author isn't a low quality comment (previously hidden or about to be hidden), then leave this one as well | ||
| const previousComment = $( | ||
| `[data-wrapper-timeline-id]:not(.rgh-low-quality-comment) a[data-testid="avatar-link"][href="${author}"]:not(.color-fg-muted)`, | ||
| ); | ||
| if (closestComment(previousComment) !== comment) { | ||
| return; | ||
| } |
Member
Author
There was a problem hiding this comment.
I have not verified this condition and what it means, I just updated the selector
Comment on lines
-36
to
-37
| for (const similarCommentsBox of $$('.js-discussion .Details-element:not([data-body-version])')) { | ||
| hideComment(similarCommentsBox); |
Member
Author
There was a problem hiding this comment.
It doesn't look like this box exists anymore? 🤔
fregante
marked this pull request as ready for review
September 30, 2026 08:04
Member
Author
|
YOLO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hide-low-quality-commentsbroken on new issue UI #9273Test URLs
stephencookdev/speed-measure-webpack-plugin#167 (comment)
Screenshot