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:
+1
-1
@@ -28,7 +28,7 @@ chrome.contextMenus.onClicked.addListener(info => {
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user