Repository navigation
Conversation
cleanup-repo-filelist-actions’s reliability
|
This will also need a |
1a3decc to
5305582
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
That's why we had 3 approvals 🤣. |
This comment has been minimized.
This comment has been minimized.
|
I would also like to take this opportunity to rename this feature to |
Please do #3514 (comment) |
|
I also turned the "Download" text of But if it doesn't suit in this PR I can extract it |
refined-github.js:1627 Uncaught TypeError: Cannot read property 'replaceWith' of null
at add (refined-github.js:1627)
at runAdd (refined-github.js:17277)
at applyChanges (refined-github.js:17193)
at SelectorObserver.addRootNodes (refined-github.js:17713)
at Array.processBatchQueue (refined-github.js:17134)
at MutationObserver.handleMutations (refined-github.js:17168) |
|
|
||
| observe('get-repo summary:not(.rgh-clean-actions)', { | ||
| add(button) { | ||
| button.classList.add('tooltipped', 'tooltipped-ne', 'rgh-clean-actions'); |
There was a problem hiding this comment.
Could you check if click outside to close works?. That's the reason I moved that classes from <summary> to <details> here.
| // Exclude logged out, mobile or file pages | ||
| const addButtonText = searchButton.nextElementSibling?.querySelector('.d-md-flex'); | ||
| if (addButtonText) { | ||
| addButtonText.parentElement!.classList.add('tooltipped', 'tooltipped-ne'); |
There was a problem hiding this comment.
👇 (if parentElement is a <summary>)
There was a problem hiding this comment.
In what case it's not a summary? My understanding is that it's a summary when it's a dropdown, and it always is.
| - [](# "clone-branch") [Clone a branch from the branches list.](https://user-images.githubusercontent.com/16872793/76802029-2a020500-67ad-11ea-95dc-bee1b1352976.png) | ||
| - [](# "fork-source-link-same-view") [Points the “Forked from user/repository” link to current folder or file in the upstream repository.](https://user-images.githubusercontent.com/1402241/84795784-3722d000-aff8-11ea-9b34-97c01acf4fd4.png) | ||
| - [](# "cleanup-repo-filelist-actions") [Replaces the labels of some simple buttons on repository filelists with icons, making them take less space.](https://user-images.githubusercontent.com/44045911/88551471-7a3f7c80-d055-11ea-82f1-c558b7871824.png) | ||
| - [](# "clean-repo-filelist-actions") [Replaces the labels of some simple buttons on repository filelists with icons, making them take less space.](https://user-images.githubusercontent.com/44045911/96283396-bbb94580-100e-11eb-9480-17954bb3a811.png) |
There was a problem hiding this comment.
Some padding is ok, but this is excessive. Can you avoid it and instead use higher-resolution screenshots? Zoom the page at 200% if possible before taking a screenshot
|
Closing this since it’s inactive to allow anyone to possibly work on it. Feel free to open a new PR based on this code. |


LINKED ISSUES:
v20.9.3 hogs system resources #3527 (comment)
TEST URLS:
SCREENSHOT:
None