diff options
author | 2020-09-30 17:25:47 -0400 | |
---|---|---|
committer | 2020-09-30 17:25:47 -0400 | |
commit | 6e7bf4f7a7d7ea163182e396b8ad4507ffb24760 (patch) | |
tree | fbbcb6cd9c886356c4fefdee3a6cabfc11e7b861 /source/features/remove-upload-files-button.tsx | |
parent | 4281ae14079104d5f1bbd71f6ac6ecd9d9dfd180 (diff) | |
download | refined-github-6e7bf4f7a7d7ea163182e396b8ad4507ffb24760.tar.gz refined-github-6e7bf4f7a7d7ea163182e396b8ad4507ffb24760.tar.zst refined-github-6e7bf4f7a7d7ea163182e396b8ad4507ffb24760.zip |
Drop `remove-upload-files-button` feature (#3603)
Diffstat (limited to 'source/features/remove-upload-files-button.tsx')
-rw-r--r-- | source/features/remove-upload-files-button.tsx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source/features/remove-upload-files-button.tsx b/source/features/remove-upload-files-button.tsx deleted file mode 100644 index 5196e417..00000000 --- a/source/features/remove-upload-files-button.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import select from 'select-dom'; -import * as pageDetect from 'github-url-detection'; - -import features from '.'; -import {getRepoURL} from '../github-helpers'; - -function init(): void { - // In "Repository refresh" layout, it's part of an "Add file" dropdown, don't delete it there - select(`.file-navigation a[href^="/${getRepoURL()}/upload"]:not(.dropdown-item)`)?.remove(); -} - -void features.add({ - id: __filebasename, - description: 'Remove the "Upload files" button', - screenshot: false -}, { - include: [ - pageDetect.isRepoTree - ], - init -}); |