This commit is contained in:
2025-04-23 12:43:41 +04:00
commit 44d5b62b3c
9 changed files with 173 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
browser.tabs.query({ active: true, currentWindow: true }, (tabs) => {
const tabId = tabs[0].id;
browser.runtime.sendMessage({ action: "getNostrLinks", tabId }, (response) => {
const menu = document.getElementById("link-menu");
if (response.links && response.links.length > 0) {
menu.innerHTML = response.links
.map(
(link) => `
<li>
<a href="web+nostr:${link.uri}" target="_blank">
${link.text || "Open on Nostr"}
</a>
</li>
`
)
.join("");
}
});
});