Goodnight> Add config UI WIP + framework libs

This commit is contained in:
2025-11-11 02:25:43 -05:00
parent 326876343f
commit 9a67088031
10 changed files with 884 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
// Add context menu items
browser.contextMenus.create({
id: "nms-cmenu",
title: "NoticeMe",
contexts: ["selection"]
}, () => void browser.runtime.lastError)
browser.contextMenus.onClicked.addListener((info, tab) => {
if (info.menuItemId === "nms-cmenu" && info.selectionText) {
// Handle context menu click with selected text
console.log("Context menu clicked with selection:", info.selectionText);
}
})