diff options
author | 2023-08-01 11:21:22 +0200 | |
---|---|---|
committer | 2023-08-01 11:21:22 +0200 | |
commit | 912aaafbe68a5f538bfc350747958a62f8cbfa6c (patch) | |
tree | 204dfae4d5a2dd019d25e1bd05f9e2dd208ff7aa | |
parent | 642fae4e8070a4c61ece1784ac880bd2e74945eb (diff) | |
download | refined-github-912aaafbe68a5f538bfc350747958a62f8cbfa6c.tar.gz refined-github-912aaafbe68a5f538bfc350747958a62f8cbfa6c.tar.zst refined-github-912aaafbe68a5f538bfc350747958a62f8cbfa6c.zip |
Review `hasRepoHeader` usage (#6804)
-rw-r--r-- | source/features/archive-forks-link.tsx | 2 | ||||
-rw-r--r-- | source/features/link-to-github-io.tsx | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/source/features/archive-forks-link.tsx b/source/features/archive-forks-link.tsx index 75fe7a75..4c8a1525 100644 --- a/source/features/archive-forks-link.tsx +++ b/source/features/archive-forks-link.tsx @@ -21,7 +21,7 @@ function init(signal: AbortSignal): void { void features.add(import.meta.url, { include: [ - pageDetect.hasRepoHeader, + pageDetect.isRepo, ], init, }); diff --git a/source/features/link-to-github-io.tsx b/source/features/link-to-github-io.tsx index c161150b..f2f22164 100644 --- a/source/features/link-to-github-io.tsx +++ b/source/features/link-to-github-io.tsx @@ -42,7 +42,7 @@ void features.add(import.meta.url, { () => /\.github\.(io|com)$/.test(getRepo()?.name ?? 'shush eslint'), ], include: [ - pageDetect.hasRepoHeader, + pageDetect.isRepoHome, ], init: initRepo, }, { @@ -52,3 +52,13 @@ void features.add(import.meta.url, { ], init: initRepoList, }); + +/* + +Test URLs: + +- Repo: https://github.com/yashshah1/yashshah1.github.io +- List, user: https://github.com/yashshah1?tab=repositories&q=GitHub.io&type=source +- List, org: https://github.com/Qv2ray?q=GitHub.io + +*/ |