Greasy Fork

Greasy Fork is available in English.

四川专技、公需科目、四川创联、成电求实、安阳专技、宜宾专技、天津专技、内蒙古专技|python通刷

python刷课,考试,无需打开浏览器。后台运行,稳定安全高效。可以快刷,一小时搞定,(成电求实专技网只能刷课,暂无题库考试)

当前为 2024-10-28 提交的版本,查看 最新版本

在您安装前,Greasy Fork 希望您知道此脚本声明其包含了一些负面功能。这些功能也许会使脚本作者获利,而不能给您带来任何直接的金钱收益。

您只有在付费后才能使用脚本的全部功能。Greasy Fork 未参与到支付的流程,因此无法验证您是否获得了有价值的东西,亦无法帮助您申请退款。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         四川专技、公需科目、四川创联、成电求实、安阳专技、宜宾专技、天津专技、内蒙古专技|python通刷
// @namespace    python脚本,只安装油猴没用,要找作者拿python
// @version      0.1.1
// @description  python刷课,考试,无需打开浏览器。后台运行,稳定安全高效。可以快刷,一小时搞定,(成电求实专技网只能刷课,暂无题库考试)
// @author       nobodyKnow
// @match        *://edu.scjxjypx.com/*
// @match        *://edu.chinahrt.com/151/*
// @match        *://videoadmin.chinahrt.com/videoPlay/*
// @match        *://ayjxjy.com/*
// @match        *://gp.chinahrt.com/*
// @match        *://tjjxjy.chinahrt.com/*
// @match        *://pcc.uestcedu.com/*
// @grant        none
// @icon         http://r.forteacher.cn/Images/logo.png
// @license      MIT
// @antifeature  payment
 
// ==/UserScript==

(function() {
    'use strict';

 
 //从这里开始


    function startVasing2(){
        if(document.querySelector('iframe').src!==""){
            window.location.replace(document.querySelector('iframe').src)
           }else if(document.URL.search('videoadmin.chinahrt.com')>0){
               document.getElementsByTagName('video')[0].playbackRate=16
           document.getElementsByTagName('video')[0].play();
            player.videoMute();
           }
        }

   
      function vasing2(){
          if(document.URL.search('web.chinahrt.com/index.html#/v_courseDetails')!==-1){
           sx()
          }
 }
setInterval(vasing2,20000)
 
    setInterval(startVasing2,5000)
 
    function endVasing(){
    if(document.URL.search('web.chinahrt.com/index.html#/v_proxy')>0){
    window.close()
    }
    }
    setInterval(endVasing,11000)
 
    function sx(){
        window.location.reload()
    }
    function ss(){
    if(document.visibilityState=='visible'){
        firstjimu()
        console.log('zxjb')
    }
    }
    setInterval(ss,6000)
    window.alert = function() {}
	window.onbeforeunload = null
	window.confirm = function() {
		return true
	}
	var vasing2url = 'plan_course'
	var v2vasingurl = 'trainplan_detail'
	var Shuyurl = 'play_video'
    var Foururl='videoPlay'
 
	document.addEventListener("visibilitychange", function() {
		console.log(document.visibilityState);
		if (document.visibilityState == "hidden") {
        //yincang
        } else if (document.visibilityState == "visible") {
			if (document.URL.search(v2vasingurl) > 1 ) {
                window.location.replace(K主页)
		
			}
		}
	});
 


 
	function vvasing() {
		var KC = document.querySelectorAll("#__nuxt > div > div.body > main > div > div:nth-child(2) > div > div > div:nth-child(4) > div > div > div > div > div> div > img") //[0].href
		var KCjd = document.querySelectorAll("#__nuxt > div > div.body > main > div > div:nth-child(2) > div > div > div:nth-child(4) > div> div > div> div > span:nth-child(4) ")//[0].innerText
		for (var i = 0; i < KCjd.length; i++) {
			if (KCjd[i].innerText !== '100%') {
				KC[i].click()
				break;
			}
		}
	}
 
	function v2vasing() {
        if (document.visibilityState == "visible") {
        //yincang
        var Lookzhuangtai =document.querySelectorAll("#__nuxt > div > div.body > main > div > div > div > div > div > div > div> div > div > div > div > div> div > div > div > div:nth-child(2) > div > div > span")//[0].innerHTML
		for (var i = 0; i < Lookzhuangtai.length; i++) {
			if (Lookzhuangtai[i].innerText !== '已学完') {
				Lookzhuangtai[i].click()
				break;
			}
		}
    }
        }
 
     function firstjimu(){
           if(document.URL.search('web.chinahrt.com/index.html#/v_selected_course')!==-1){
            console.log('vx:vasing2')
             var kc1=document.querySelectorAll('div.progress-line>span')
            for (var i = 0;i < kc1.length;i++){
                if(kc1[i].innerText=="0%"){
              document.getElementsByClassName('bg pa tc')[i].click()
                break;
             }
          }
       }else if(document.URL.search('web.chinahrt.com/index.html#/v_courseDetails')!==-1){
       
           var kc2=document.querySelectorAll('a.button.fr.mt10.mr20.border-public.tc.f14.titlecolor')
           var sm= Number(kc2.length)
            for (var l = 0;l < kc2.length;l++){
                if(kc2[l].innerText.search('00:00')>0){
                    
                    kc2[l].click()
                    window.location.reload()
                    break;
             }else if (kc2.length-1==l){
                 alert('第一次找未播放课程结束,继续请加 vasing2')
             window.history.go(-1)
             }
           }
       }
    }
 
	function habit() {
		if (document.URL.search(v2vasingurl) > 2) {
			setTimeout(v2vasing, 210)
		} else if (document.URL.search(vasing2url) > 2) {
			setTimeout(vvasing, 224)
		}
	}
	setInterval(habit, 4254)
 
})();