sindresorhus/refined-github

Expand but hide "1 similar comment" in `hide-useless-comments` #3830

fregante posted onGitHub

<img width="876" alt="" src="https://user-images.githubusercontent.com/1402241/102661213-67376100-414a-11eb-8828-df7c8e6fdbdf.png">

"Similar" comments are useless comments, so they should be hidden by hide-useless-comments.

The feature should run on these comments and, if they are indeed useless, the should be expanded ¹ and hidden.


¹ the user shouldn't have to click that comment to expand it again if they already clicked "show useless comments"

Test URL: https://github.com/justinfrankel/licecap/issues/97#issuecomment-737063337


https://github.com/sindresorhus/refined-github/pull/4013 partially undid this, the "Similar comments" is no longer expanded.

posted by fregante about 4 years ago

It works for me on Firefox and Chromium with the latest RGH release, both similar comment boxes are expanded.

posted by cheap-glitch about 4 years ago

Interesting, it works in Chrome but not Safari. I just built main and still nothing

posted by fregante about 4 years ago

Unfortunately I can't test it in Safari, but maybe simplifying the selector as mentioned in https://github.com/sindresorhus/refined-github/pull/4013#discussion_r581093205 could fix this.

posted by cheap-glitch about 4 years ago

Fixed in 6d52cb1

posted by fregante about 4 years ago

Fund this Issue

$0.00
Funded

Pull requests