Skip to content

Commit

Permalink
V1.3.4
Browse files Browse the repository at this point in the history
专项答题只答当年题目
  • Loading branch information
Huozzzy committed Jun 21, 2022
1 parent 273fcb4 commit b4f18f6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
本插件基于原开源插件`学习小熊`的版本,针对新的文章视频阅读规则开发的二次版本。

## 更新说明
v1.3.3(2022-06-02):
v1.3.4(2022-06-21):

1.5月24日起每周答题官方不再出题,故自动学习每日总分为30+10(如有专项答题)
2.优化一些小问题
1.专项答题只答当年题目

## 下载
* [最新发布](https://github.com/Huozzzy/Learning-Learner/releases/)
Expand Down
5 changes: 4 additions & 1 deletion js/exampaper.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ chrome.runtime.sendMessage({"method": "checkTab"}, {}, function (response) {
document.querySelectorAll('.item .right > button').forEach(function (e, b, c) {
if (isNextPage) {
let i = e.innerText;
let year = e.parentNode.parentNode.firstElementChild.lastElementChild.innerText.slice(0, 4);
if (i != "" && (i == '开始答题' || i == '继续答题')) {
isNextPage = false;
e.click();
if ((new Date().getFullYear() == year)) {
e.click();
}
return;
}
}
Expand Down
14 changes: 6 additions & 8 deletions js/exampractice.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,13 @@ chrome.runtime.sendMessage({"method": "checkTab"}, {}, function (response) {

function answerSubmit(options = 0) {
if (options > 0 && ManageType == 'auto') {
setTimeout(function (){
if(document.querySelector(".action") == null ){
if(document.querySelector(".submit-btn") != null){
document.querySelector(".submit-btn").click();
}else{
document.querySelector(".next-btn").click();
}
if ($(".submit-btn").length) {
$(".submit-btn").click();
} else {
if ($(".next-btn").length) {
$(".next-btn").click();
}
},500);
}
setTimeoutFunc = setTimeout(getAnswers, parseInt(Math.random() * 1000));
}
}
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": 2,
"name": "__MSG_extName__",
"version": "1.3.3",
"version": "1.3.4",
"default_locale": "zh_CN",
"description": "__MSG_extDescription__",
"icons": {
Expand Down

0 comments on commit b4f18f6

Please sign in to comment.