From 52f06909f36471a7f5aaec3ea26d22d080c9621f Mon Sep 17 00:00:00 2001 From: jonny Date: Thu, 5 Mar 2026 10:21:55 +0800 Subject: [PATCH] Append reference link when sending selection Add the original page/link as a Markdown reference when sending selected text via the context menu. background.js now appends `[Reference Link](...)` using info.linkUrl or info.pageUrl; manifest version bumped to 2026.03.06; README changelog updated to note the new right-click behavior. --- README.md | 1 + js/background.js | 2 +- manifest.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c957a67..6575c52 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ Chrome 应用商店: { let tempCont='' switch(info.menuItemId){ case 'Memos-send-selection': - tempCont = info.selectionText + '\n' + tempCont = info.selectionText + '\n' + `[Reference Link](${info.linkUrl || info.pageUrl})` + '\n' break case 'Memos-send-link': tempCont = (info.linkUrl || info.pageUrl) + '\n' diff --git a/manifest.json b/manifest.json index 90e8a3d..1ff0606 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "__MSG_extName__", "default_locale": "en", - "version": "2026.03.05", + "version": "2026.03.06", "version_name": "Supports 0.24.0 to the latest version", "action": { "default_popup": "popup.html",