Repository navigation
Minor code fixes and tweaks - #9418
Merged
Merged
Conversation
SunsetTechuila
commented
May 10, 2026
Contributor
Author
There was a problem hiding this comment.
Doesn't fix anything
1 task done
SunsetTechuila
commented
May 10, 2026
|
|
||
| function init(signal: AbortSignal): void { | ||
| observe('.blob-num:empty:not(.blob-num-hunk)', linkify, {signal}); | ||
| observe('.blob-num:not(:is(.blob-num-hunk, .empty-cell))', linkify, {signal}); |
Contributor
Author
There was a problem hiding this comment.
:empty was removed because together with :not(.empty-cell) it makes the selector confusing. Also, it is very likely redundant with the current selector: 76e40dd#diff-370d166d668c59ad4698cc872ca4915bb9a4db83d7446d7f4230cfe196e7c9b6L24-R27
SunsetTechuila
commented
May 10, 2026
| '.react-directory-filename-column > :is(svg, img).color-fg-muted', | ||
| '.js-navigation-container .octicon-file', | ||
| ]; | ||
| export const directoryListingFileIcon = '.react-directory-filename-column > .octicon-file'; |
Contributor
Author
There was a problem hiding this comment.
Tested with "Catppuccin" and "Material Icons" extensions
SunsetTechuila
commented
May 10, 2026
| function init(): void { | ||
| // Selects all the deployments first so that we can leave the last one on the page | ||
| const deployments = $$('.js-socket-channel[data-gid^="PR"]:has(.octicon-rocket)'); | ||
| const deployments = $$optional('.js-socket-channel[data-gid^="PR"]:has(.octicon-rocket)'); |
SunsetTechuila
commented
May 10, 2026
| async updater(commit: string): Promise<string | false> { | ||
| const tagsAndBranches = await fetchDom(buildRepoUrl('branch_commits', commit)); | ||
| const tags = $$('ul.branches-tag-list a', tagsAndBranches); | ||
| const tags = $$optional('ul.branches-tag-list a', tagsAndBranches); |
fregante
reviewed
May 10, 2026
Co-authored-by: fregante <[email protected]>
SunsetTechuila
marked this pull request as ready for review
May 10, 2026 13:27
SunsetTechuila
commented
May 10, 2026
| const reactions = $$([ | ||
| 'button[aria-pressed]', // Discussions, releases, PRs, old issues | ||
| function showAvatarsOn(reactionsContainer: Element): void { | ||
| const reactions = $$optional([ |
Contributor
Author
|
Ready to be merged |
This was referenced May 11, 2026
1 task done
This was referenced May 16, 2026
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.


Test URLs
Screenshot