summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Daniel Miao <danielmiao2019@icloud.com> 2023-08-24 05:06:24 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-24 19:06:24 +0700
commitec32c7bf7030ecd797be0cb148ec982d3a035a20 (patch)
tree36c9bb0ac5709a7d1bf310a85d0ef9112ff32433
parent31d0f773e414ab05d01f93d8ee9cc055dd75f730 (diff)
downloadrefined-github-ec32c7bf7030ecd797be0cb148ec982d3a035a20.tar.gz
refined-github-ec32c7bf7030ecd797be0cb148ec982d3a035a20.tar.zst
refined-github-ec32c7bf7030ecd797be0cb148ec982d3a035a20.zip
Restore `linkify-user-location` in hover cards (#6847)23.8.24
-rw-r--r--source/features/linkify-user-location.tsx11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/features/linkify-user-location.tsx b/source/features/linkify-user-location.tsx
index 5b5238c4..adfda621 100644
--- a/source/features/linkify-user-location.tsx
+++ b/source/features/linkify-user-location.tsx
@@ -28,10 +28,19 @@ function addLocation({nextElementSibling, nextSibling}: SVGElement): Element {
function init(): void {
observe([
'[itemprop="homeLocation"] svg.octicon-location', // `isUserProfile`
- '[aria-label="user location"] svg.octicon-location', // Hover cards
+ '[aria-label="User location"] svg.octicon-location', // Hover cards
], addLocation);
}
void features.add(import.meta.url, {
init,
});
+
+/*
+
+Test URLs
+
+https://github.com/docubot
+https://github.com/
+
+*/