diff options
author | 2021-08-21 21:48:16 +0800 | |
---|---|---|
committer | 2021-08-21 20:48:16 +0700 | |
commit | c9bac7916f60dcd936c5b71fdbb8dea11894f452 (patch) | |
tree | f9f7f37574bb64fad471066db3b91bef511e79c4 /source/features/clean-repo-filelist-actions.tsx | |
parent | ada13f681d80293ae7777ce5699ed4554564c894 (diff) | |
download | refined-github-c9bac7916f60dcd936c5b71fdbb8dea11894f452.tar.gz refined-github-c9bac7916f60dcd936c5b71fdbb8dea11894f452.tar.zst refined-github-c9bac7916f60dcd936c5b71fdbb8dea11894f452.zip |
Fix `clean-repo-filelist-actions` feature (#4684)
Diffstat (limited to 'source/features/clean-repo-filelist-actions.tsx')
-rw-r--r-- | source/features/clean-repo-filelist-actions.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/features/clean-repo-filelist-actions.tsx b/source/features/clean-repo-filelist-actions.tsx index 647ca486..88a672af 100644 --- a/source/features/clean-repo-filelist-actions.tsx +++ b/source/features/clean-repo-filelist-actions.tsx @@ -38,12 +38,13 @@ function init(): void { } // This dropdown doesn't appear on `isSingleFile` - const downloadIcon = select('get-repo .octicon-download'); - if (downloadIcon) { + // Remove `.octicon-download` in November + const codeIcon = select('get-repo :is(.octicon-code, .octicon-download)'); + if (codeIcon) { // Remove "Code" text next to it - downloadIcon.nextSibling!.remove(); + codeIcon.nextSibling!.remove(); - addTooltipToSummary(downloadIcon, 'Clone, open or download'); + addTooltipToSummary(codeIcon, 'Clone, open or download'); } }, }); |