Skip to content

Commit

Permalink
V3.0.3
Browse files Browse the repository at this point in the history
优化v3扩展
  • Loading branch information
Huozzzy committed Jul 6, 2022
1 parent f3887f5 commit c9957ef
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 28 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
16 changes: 0 additions & 16 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
"message": "一个学习强国的帮手",
"description": ""
},
"extVersion": {
"message": "请更新浏览器版本",
"description": ""
},
"extWorking": {
"message": "努力学习中",
"description": ""
Expand All @@ -22,17 +18,5 @@
"extFinish": {
"message": "学习完毕!明天见",
"description": ""
},
"extScoreApi": {
"message": "积分接口变更",
"description": ""
},
"extChannelApi": {
"message": "渠道接口变更",
"description": ""
},
"extUpdate": {
"message": "请等待新版本发布",
"description": ""
}
}
12 changes: 6 additions & 6 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -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;
});
Expand Down
2 changes: 1 addition & 1 deletion js/exampractice.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ chrome.runtime.sendMessage({ type: "checkRunning" }, {}, function (response) {
}

// 浏览器提醒
chrome.runtime.sendMessage({ type: "answerError" });
// chrome.runtime.sendMessage({ type: "answerError" });

// 设置类型等待
ManageType = "wait";
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit c9957ef

Please sign in to comment.