// ==UserScript== // @name 华医网跳视频- // @include *://*.91huayi.com/* // @version 0.2 // @description 视频可以秒刷|考试无法秒刷|需要软件配合|秒刷代刷VX:shuake345 // @grant none // @namespace https://greasyfork.org/users/1072479 // @downloadURL none // ==/UserScript== (function() { 'use strict'; window.alert = function() {} window.onbeforeunload = null window.confirm = function() { return true } document.addEventListener("visibilitychange", function() { console.log(document.visibilityState); if (document.visibilityState == "hidden") { //yincang } else if (document.visibilityState == "visible") { if (document.URL.search('course.aspx') > 1 ) { setTimeout(sxrefere, 1000) } } }); var LishiDaan if(localStorage.getItem('OldAhtr')==null){ LishiDaan='' }else{LishiDaan=localStorage.getItem('OldAhtr')} var LiShiTimu if(localStorage.getItem('OldTimu')==null){ LiShiTimu='' }else{LiShiTimu=localStorage.getItem('OldTimu')} function fhback() { window.history.go(-1) } function gbclose() { window.close() } function sxrefere() { window.location.reload() } function zy(){ if (document.URL.search('course.aspx') > 1 ){ var Kcs=document.querySelectorAll('div.course') for (var i=0;i0){ var kcs=document.querySelectorAll('div.case3>div.left>dl>dd') if(kcs.length>0){ for (var i=0;idiv.left>dl>dd>input')[i].value=="立即学习"){ document.querySelectorAll('div.case3>div.left>dl>dd>input')[i].click() } } } }else if(document.URL.search('course_ware/course_ware_polyv.aspx')>0){ var min=document.getElementsByClassName('pv-time-duration')[0].innerText.split(':')[0]*60*1000 var sect=document.getElementsByClassName('pv-time-duration')[0].innerText.split(':')[1]*1000 var sect1000= min+sect document.getElementsByTagName('video')[0].currentTime=7200 setTimeout(KsKaoshi1,1545)} else if(document.URL.search('course_ware/course_ware_cc.aspx')>0){ document.getElementsByTagName('video')[0].currentTime=7200 setTimeout(KsKaoshi,1545) } } setTimeout(tsp,2000) function KsKaoshi(){ } function KsKaoshi1(){ } })();