Repository navigation
release-download-count - Avoid duplicates, preserve hash - #9799
Merged
Merged
Conversation
release-download-count - Don't hide hashrelease-download-count - Avoid duplicates, preserve hash
fregante
commented
Jul 10, 2026
| const hash = $optional(':scope > div:has(clipboard-copy)', assetSize.parentElement!); | ||
| // Hide sha on mobile. They have the classes but they're not correct (they hide in mid sizes, but show on smallest and largest) | ||
| hash?.classList.add('d-none'); | ||
| hash?.classList.add('d-none', 'd-md-flex'); |
Member
Author
There was a problem hiding this comment.
| // The native counter doesn't have heat colors, so we replace it anyway. | ||
| // https://github.com/refined-github/refined-github/issues/9769#issuecomment-4857658434 | ||
| if (nativeCount) { | ||
| nativeCount.replaceWith(widget); |
Member
Author
| nativeCount.replaceWith(widget); | ||
| } else { | ||
| // Add at the beginning of the line to avoid content shift | ||
| assetSize.parentElement!.prepend(widget); |
Member
Author
There was a problem hiding this comment.
Our count is prepended to avoid content shift, e.g. https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.6.4
1 task done
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.

release-download-countis removing the sha #9789release-download-count(partly) implemented by GitHub #9769Test URLs
https://github.com/refined-github/refined-github/releases/tag/26.7
Screenshot
Here's a page reload gif: