summaryrefslogtreecommitdiff
path: root/source/features/remove-upload-files-button.tsx
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2020-09-30 17:25:47 -0400
committerGravatar GitHub <noreply@github.com> 2020-09-30 17:25:47 -0400
commit6e7bf4f7a7d7ea163182e396b8ad4507ffb24760 (patch)
treefbbcb6cd9c886356c4fefdee3a6cabfc11e7b861 /source/features/remove-upload-files-button.tsx
parent4281ae14079104d5f1bbd71f6ac6ecd9d9dfd180 (diff)
downloadrefined-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.tsx21
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
-});