Goodnight> Add config UI WIP + framework libs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user