diff --git a/README.md b/README.md index 6d9c802..67cf660 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,12 @@ Chrome 应用商店: -一个通过浏览器插件发布 [Memos](https://usememos.com/) 的插件。 - -基于 iSpeak-bber 修改,原作者为 [DreamyTZK](https://www.antmoe.com/)。 +一个通过浏览器插件发布 [Memos](https://usememos.com/) 的插件。基于 iSpeak-bber 修改,原作者为 [DreamyTZK](https://www.antmoe.com/)。 ## 更新日志 +2023.03.19 打开插件时 focus 输入框;上传图片重命名精确的秒。 + 2023.03.10 修复发布后调用最新一条 Memos。 2023.03.09 新增右键发送文本至 Memos 输入框。 diff --git a/js/oper.js b/js/oper.js index 83e4b0a..fe4062e 100644 --- a/js/oper.js +++ b/js/oper.js @@ -66,6 +66,8 @@ get_info(function (info) { setTimeout(get_info, 1) }) +$("textarea[name=text]").focus() + //监听输入结束,保存未发送内容到本地 $("textarea[name=text]").blur(function () { chrome.storage.sync.set( @@ -147,7 +149,7 @@ function uploadImage(data) { if (info.status) { let old_name = data.name.split('.'); let file_ext = data.name.split('.').pop(); - let now = dayjs().format('YYYYMMDDHHmm') + let now = dayjs().format('YYYYMMDDHHmmss') let new_name = old_name[0] + '_' + now + '.' + file_ext; formData.append('file', data, new_name) $.ajax({ diff --git a/manifest.json b/manifest.json index 72b5804..ec9799c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "__MSG_extName__", - "version": "2023.03.10", + "version": "2023.03.19", "action": { "default_popup": "popup.html", "default_icon": "assets/logo_24x24.png",