2 Commits

Author SHA1 Message Date
7e133cae63 Update version 2025-05-26 10:27:09 +04:00
1fc46a38a8 Mark "me" links in description 2025-05-26 10:25:59 +04:00
3 changed files with 3 additions and 2 deletions

View File

@@ -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, {

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Nostr Links",
"version": "1.0.2",
"version": "1.1.0",
"description": "A web extension to discover Nostr links",
"author": "Râu Cao",
"homepage_url": "https://gitea.kosmos.org/raucao/nostr-links",

View File

@@ -6,9 +6,9 @@
<title>Example page</title>
<link rel="me" href="nostr:npub1raustrrh5gjwt03zdj8syn9vmt2dwsv9t467m8c3gua636uxu89svgdees" title="Ru Cao">
<link rel="me" type="application/nostr+json" href="nostr:npub1raustrrh5gjwt03zdj8syn9vmt2dwsv9t467m8c3gua636uxu89svgdees" title="Râu Cao">
<link rel="alternate" type="application/nostr+json" href="nostr:naddr1qvzqqqr4gupzqplp3zsllp7wzuw4z7uw62ah5vd36dzn5rdnk9fhnmq8kujdyvhnqyfhwue69uhkcmmrv9kxsmmnwsarwdehxuqq6vfhxgunvwp4x5unwve3xcmz28za" title="Testing my new blog">
<link rel="author" type="text/html" href="https://nostr.kosmos.org/@jimmy" title="Jimmy">
<link rel="author" type="application/nostr+json" href="nostr:nprofile1qyfhwue69uhkcmmrv9kxsmmnwsarwdehxuqzqplp3zsllp7wzuw4z7uw62ah5vd36dzn5rdnk9fhnmq8kujdyvhnmg53sl" title="Jimmy">
<link rel="alternate" type="application/nostr+json" href="nostr:naddr1qvzqqqr4gupzqplp3zsllp7wzuw4z7uw62ah5vd36dzn5rdnk9fhnmq8kujdyvhnqyfhwue69uhkcmmrv9kxsmmnwsarwdehxuqq6vfhxgunvwp4x5unwve3xcmz28za" title="Testing my new blog">
</head>
<body>
<h1>Nostr Links Examples</h1>