summaryrefslogtreecommitdiff
path: root/source/features/link-to-prior-blame-line.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2023-02-19 20:08:32 +0800
committerGravatar GitHub <noreply@github.com> 2023-02-19 20:08:32 +0800
commitb9e20de6ab8dba8954dee9895572e8cb4cd00408 (patch)
treee6bed2fd1861c1aa377bd61cdab986f1c78ff677 /source/features/link-to-prior-blame-line.tsx
parentd12a2838e946deefde647fc06f60be4d9c98a64d (diff)
downloadrefined-github-b9e20de6ab8dba8954dee9895572e8cb4cd00408.tar.gz
refined-github-b9e20de6ab8dba8954dee9895572e8cb4cd00408.tar.zst
refined-github-b9e20de6ab8dba8954dee9895572e8cb4cd00408.zip
Drop `link-to-prior-blame-line` feature (#6363)
Diffstat (limited to 'source/features/link-to-prior-blame-line.tsx')
-rw-r--r--source/features/link-to-prior-blame-line.tsx19
1 files changed, 0 insertions, 19 deletions
diff --git a/source/features/link-to-prior-blame-line.tsx b/source/features/link-to-prior-blame-line.tsx
deleted file mode 100644
index 5ad32a26..00000000
--- a/source/features/link-to-prior-blame-line.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import select from 'select-dom';
-import * as pageDetect from 'github-url-detection';
-
-import features from '../feature-manager';
-
-function init(): void {
- for (const link of select.all('a.reblame-link')) {
- const lineNumber = link.closest('.blame-hunk')!.querySelector('.js-line-number[id]')!.id;
- link.hash = `#${lineNumber}`;
- }
-}
-
-void features.add(import.meta.url, {
- include: [
- pageDetect.isBlame,
- ],
- deduplicate: 'has-rgh',
- init,
-});