From c9957efc2ff51d0dee311135ffdf3b1b7ed0c080 Mon Sep 17 00:00:00 2001 From: Huozy <42334632+Huozzzy@users.noreply.github.com> Date: Wed, 6 Jul 2022 10:15:27 +0800 Subject: [PATCH] =?UTF-8?q?V3.0.3=20=E4=BC=98=E5=8C=96v3=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++---- _locales/zh_CN/messages.json | 16 ---------------- background.js | 12 ++++++------ js/exampractice.js | 2 +- manifest.json | 2 +- 5 files changed, 10 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 232ad35..1a96ca2 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,11 @@ ## 自用! ## 更新说明 -v3.0.2(2022-06-29): +v3.0.3(2022-07-05): 1.更新chrome插件manifest v3 请使用支持v3扩展的浏览器版本 2.专项答题现在只做当年题目,往年题目不再答题 - 3.v2扩展有时间再优化下 - 4.修正某些情况下专项答题不回答的情况 - + 3.只支持v2扩展的浏览器请使用release中的v201.crx ## 下载 * [最新发布](https://github.com/Huozzzy/Learning-Learner/releases/) diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index 8e3cecc..9d68a79 100755 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -7,10 +7,6 @@ "message": "一个学习强国的帮手", "description": "" }, - "extVersion": { - "message": "请更新浏览器版本", - "description": "" - }, "extWorking": { "message": "努力学习中", "description": "" @@ -22,17 +18,5 @@ "extFinish": { "message": "学习完毕!明天见", "description": "" - }, - "extScoreApi": { - "message": "积分接口变更", - "description": "" - }, - "extChannelApi": { - "message": "渠道接口变更", - "description": "" - }, - "extUpdate": { - "message": "请等待新版本发布", - "description": "" } } \ No newline at end of file diff --git a/background.js b/background.js index bfcd415..25d0b72 100755 --- a/background.js +++ b/background.js @@ -226,12 +226,12 @@ function startStudy() { // 静音处理 chrome.tabs.update(window.tabs[window.tabs.length - 1].id, { "muted": true }); // 开始学习 - noticeMessage(chrome.i18n.getMessage("extWorking"), chrome.i18n.getMessage("extWarning")); + noticeMessage(chrome.i18n.getMessage("extWarning")); }); }); } else { // 学习中 - noticeMessage(chrome.i18n.getMessage("extWorking"), chrome.i18n.getMessage("extLearning")); + noticeMessage(chrome.i18n.getMessage("extWorking")); // 设置焦点 chrome.windows.update(result.studyWindowId, { "focused": true }); @@ -356,10 +356,10 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { break; // 回答错误 - case "answerError": - noticeMessage(chrome.i18n.getMessage("extName"), chrome.i18n.getMessage("extAnswerError")) - sendResponse({ "complete": 0 }); - break; + // case "answerError": + // noticeMessage(chrome.i18n.getMessage("extAnswerError")) + // sendResponse({ "complete": 0 }); + // break; } return true; }); diff --git a/js/exampractice.js b/js/exampractice.js index ff203b9..f4d5d6c 100755 --- a/js/exampractice.js +++ b/js/exampractice.js @@ -173,7 +173,7 @@ chrome.runtime.sendMessage({ type: "checkRunning" }, {}, function (response) { } // 浏览器提醒 - chrome.runtime.sendMessage({ type: "answerError" }); + // chrome.runtime.sendMessage({ type: "answerError" }); // 设置类型等待 ManageType = "wait"; diff --git a/manifest.json b/manifest.json index 05da878..7dc58d6 100755 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "__MSG_extName__", - "version": "3.0.2", + "version": "3.0.3", "default_locale": "zh_CN", "description": "__MSG_extDescription__", "icons": {