mirror of
https://github.com/Jonnyan404/memos-bber.git
synced 2026-04-25 03:58:37 +09:00
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.
This commit is contained in:
@@ -6,6 +6,7 @@ Chrome 应用商店:<https://chrome.google.com/webstore/detail/memos-bber/cbhj
|
|||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
|
||||||
|
- 2026年03月06日 右键菜单发送选中文本附带原文链接
|
||||||
- 2026年03月05日 向前兼容到0.24.0,可能再往前也行,因为只测试了0.24.0和0.25.0以及当前最新版本,如有更早版本需求,可issue反馈
|
- 2026年03月05日 向前兼容到0.24.0,可能再往前也行,因为只测试了0.24.0和0.25.0以及当前最新版本,如有更早版本需求,可issue反馈
|
||||||
- 2026年02月22日 由于原作者基本放弃更新,现接手维护,不兼容更新,匹配 v0.26.1 ,欢迎各位大佬PR
|
- 2026年02月22日 由于原作者基本放弃更新,现接手维护,不兼容更新,匹配 v0.26.1 ,欢迎各位大佬PR
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ chrome.contextMenus.onClicked.addListener(info => {
|
|||||||
let tempCont=''
|
let tempCont=''
|
||||||
switch(info.menuItemId){
|
switch(info.menuItemId){
|
||||||
case 'Memos-send-selection':
|
case 'Memos-send-selection':
|
||||||
tempCont = info.selectionText + '\n'
|
tempCont = info.selectionText + '\n' + `[Reference Link](${info.linkUrl || info.pageUrl})` + '\n'
|
||||||
break
|
break
|
||||||
case 'Memos-send-link':
|
case 'Memos-send-link':
|
||||||
tempCont = (info.linkUrl || info.pageUrl) + '\n'
|
tempCont = (info.linkUrl || info.pageUrl) + '\n'
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "__MSG_extName__",
|
"name": "__MSG_extName__",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"version": "2026.03.05",
|
"version": "2026.03.06",
|
||||||
"version_name": "Supports 0.24.0 to the latest version",
|
"version_name": "Supports 0.24.0 to the latest version",
|
||||||
"action": {
|
"action": {
|
||||||
"default_popup": "popup.html",
|
"default_popup": "popup.html",
|
||||||
|
|||||||
Reference in New Issue
Block a user