Skip to content

Commit a1e546f

Browse files
author
wuwei
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # StudyChromeApp/script.js
2 parents b833870 + 8fae127 commit a1e546f

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

StudyChromeApp/script.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ chrome.storage.local.get('mode',function(str){
77
model = str.mode;
88

99

10-
if(model == 1){
11-
console.log("自动学习模式。。。");
12-
mode1();
13-
} else if(mode = 2) {
10+
if(model == 1){
11+
console.log("自动学习模式。。。");
12+
mode1();
13+
} else if(mode = 2) {
1414
console.log("周期学习模式。。。");
15-
mode2();
16-
}
15+
mode2();
16+
}
1717
});
1818

1919

@@ -34,6 +34,16 @@ function mode1() {
3434

3535

3636
}, 1000);
37+
} else {
38+
setTimeout(function () {
39+
var link = $('a', $('.notattempt').first().parents('tr').first());
40+
if (link.length < 1) {
41+
link = $('a', $('.incomplete').first().parents('tr').first());
42+
}
43+
if (link.length > 0) {
44+
link[0].click();
45+
}
46+
}, 2000);
3747
}
3848

3949

0 commit comments

Comments
 (0)