Skip to content

Commit 69c54f5

Browse files
authored
Update 不学习何以强国.js
1 parent bfe7c3d commit 69c54f5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

不学习何以强国.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name 不学习何以强国-beta
33
// @namespace http://tampermonkey.net/
4-
// @version 20220206
4+
// @version 20220214
55
// @description 问题反馈位置: https://github.com/TechXueXi/techxuexi-js/issues 。读文章,看视频,做习题。
66
// @author techxuexi ,荷包蛋。
77
// @match https://www.xuexi.cn
@@ -206,7 +206,12 @@ function getVideoTag() {
206206
//type:0为新闻,1为视频
207207
async function reading(type) {
208208
//看文章或者视频
209-
let time = parseInt(Math.random() * (100 - 80 + 1) + 80, 10);//80-100秒后关闭页面
209+
var time=1;
210+
if (type == 0) {
211+
time = parseInt(Math.random() * (100 - 80 + 1) + 80, 10);//80-100秒后关闭页面,看文章
212+
} else {
213+
time = parseInt(Math.random() * (250 - 230 + 1) + 230, 10);//230-250秒后关闭页面,看视频
214+
}
210215
let firstTime = time - 2;
211216
let secendTime = 12;
212217
let scrollLength = document.body.scrollHeight / 2;

0 commit comments

Comments
 (0)