diff --git a/README.md b/README.md index 6b1d13c..a4459e4 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ Chrome 应用商店: { + chrome.contextMenus.create( + { + type: 'normal', + title: '发送 “%s” 至 Memos ', + id: 'Memos-send', + contexts: ['all'] + }, + ) + }) + chrome.contextMenus.onClicked.addListener(info => { + chrome.storage.sync.set({open_action: "save_text",open_content:info.selectionText}); + }) \ No newline at end of file diff --git a/manifest.json b/manifest.json index 9c5b4cb..cbb3a9f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "__MSG_extName__", - "version": "2023.03.05", + "version": "2023.03.09", "action": { "default_popup": "popup.html", "default_icon": "assets/logo_24x24.png", @@ -15,6 +15,9 @@ "16": "assets/logo.png", "48": "assets/logo.png" }, + "background": { + "service_worker": "js/background.js" + }, "permissions": [ "tabs", "storage",