From 1fc46a38a876e3f1e5f69dcf8f685f5415b9c9cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 26 May 2025 10:25:59 +0400 Subject: [PATCH] Mark "me" links in description --- content.js | 1 + test/example.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/content.js b/content.js index ca10a7b..8e3d03a 100644 --- a/content.js +++ b/content.js @@ -11,6 +11,7 @@ document.addEventListener('DOMContentLoaded', function() { links.forEach(link => { const uri = link.href.replace(/^(nostr|web+nostr):/, "").trim(); let text = link.title?.trim() || ''; + if (link.rel === "me") text = `Me: ${text}`; if (link.rel === "author") text = `Author: ${text}`; linkMap.set(uri, { diff --git a/test/example.html b/test/example.html index 62c4292..26c020d 100644 --- a/test/example.html +++ b/test/example.html @@ -6,9 +6,9 @@ Example page - +

Nostr Links Examples