Skip to content

Commit

Permalink
20230409
Browse files Browse the repository at this point in the history
  • Loading branch information
lmm214 committed Apr 9, 2023
1 parent 89c47e2 commit adc84eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Chrome 应用商店:<https://chrome.google.com/webstore/detail/memos-bber/cbhj

## 更新日志

2023.03.25 右键菜单发送文本改为“追加模式”(不刷新已打开页面时);新增多语言支持(en、zh-cn)。
2023.04.09 匹配 v0.12.0 附件链接由 filename 改为 publicId 。

2023.03.25 右键菜单发送文本改为“追加模式”(不刷新已打开页面、不刷新已打开页面、不刷新已打开页面时);新增多语言支持(en、zh-cn)。

2023.03.19 上传图片重命名精确的秒;打开插件时 focus 输入框(配合右键发送文本到扩展,设置快捷键打开扩展,按下 Ctrl+Enter 记下)。

Expand Down
10 changes: 6 additions & 4 deletions js/oper.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,12 @@ $('#search').click(function () {
for(var j=0;j < resourceList.length;j++){
var restype = resourceList[j].type.slice(0,5);
var resexlink = resourceList[j].externalLink
var resLink = ''
var resLink = '',fileId=''
if(resexlink){
resLink = resexlink
}else{
resLink = info.apiUrl.replace(/api\/memo.*/,'')+'o/r/'+resourceList[j].id+'/'+resourceList[j].filename
fileId = resourceList[j].publicId || resourceList[j].filename
resLink = info.apiUrl.replace(/api\/memo.*/,'')+'o/r/'+resourceList[j].id+'/'+fileId
}
if(restype == 'image'){
searchDom += '<img class="random-image" src="'+resLink+'"/>'
Expand Down Expand Up @@ -366,11 +367,12 @@ function randDom(randomData){
for(var j=0;j < resourceList.length;j++){
var restype = resourceList[j].type.slice(0,5);
var resexlink = resourceList[j].externalLink
var resLink = ''
var resLink = '',fileId=''
if(resexlink){
resLink = resexlink
}else{
resLink = info.apiUrl.replace(/api\/memo.*/,'')+'o/r/'+resourceList[j].id+'/'+resourceList[j].filename
fileId = resourceList[j].publicId || resourceList[j].filename
resLink = info.apiUrl.replace(/api\/memo.*/,'')+'o/r/'+resourceList[j].id+'/'+fileId
}
if(restype == 'image'){
randomDom += '<img class="random-image" src="'+resLink+'"/>'
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "__MSG_extName__",
"default_locale": "zh_CN",
"version": "2023.03.25",
"version": "2023.04.09",
"action": {
"default_popup": "popup.html",
"default_icon": "assets/logo_24x24.png",
Expand Down

0 comments on commit adc84eb

Please sign in to comment.