File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 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为视频
207207async 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 ;
You can’t perform that action at this time.
0 commit comments