summaryrefslogtreecommitdiff
path: root/source/features/clean-repo-header.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2023-09-21 09:03:57 +0800
committerGravatar GitHub <noreply@github.com> 2023-09-21 01:03:57 +0000
commite9e650da9918a1af25c36c59249badfe3f8e0508 (patch)
tree67b1c75cc6a2b0dd1e749432c9e96970babb77d8 /source/features/clean-repo-header.tsx
parent78e4b2d1db40caa55af973196f22f054f66f594b (diff)
downloadrefined-github-e9e650da9918a1af25c36c59249badfe3f8e0508.tar.gz
refined-github-e9e650da9918a1af25c36c59249badfe3f8e0508.tar.zst
refined-github-e9e650da9918a1af25c36c59249badfe3f8e0508.zip
`clean-repo-header` - Let users disable it (#6941)23.9.21
Diffstat (limited to 'source/features/clean-repo-header.tsx')
-rw-r--r--source/features/clean-repo-header.tsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/features/clean-repo-header.tsx b/source/features/clean-repo-header.tsx
new file mode 100644
index 00000000..ddb56e5d
--- /dev/null
+++ b/source/features/clean-repo-header.tsx
@@ -0,0 +1,14 @@
+import './clean-repo-header.css';
+import * as pageDetect from 'github-url-detection';
+
+import features from '../feature-manager.js';
+
+void features.addCssFeature(import.meta.url, [pageDetect.isRepoRoot]);
+
+/*
+
+## Test URLs
+
+https://github.com/refined-github/refined-github
+
+*/