您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
主页点击:课程按钮|自动学习小节|未写自动换课功能|需要代刷+vx:shuake345
// ==UserScript== // @name 成都大学专业技术人员继续教育公共服务平台武侯区学习入口-自动看课,需要答题代刷++++++v:shuake345 ++++++++ // @match *://*.lllnet.cn/* // @match *://*.lllnet.cn/media/* // @icon https://www.google.com/s2/favicons?sz=64&domain=lllnet.cn // @grant none // @namespace 需要代刷++++++v:shuake345 ++++++++ // @version 0.3 // @description 主页点击:课程按钮|自动学习小节|未写自动换课功能|需要代刷+vx:shuake345 // @author vx:shuake345 // @license MIT // ==/UserScript== (function() { 'use strict'; window.alert = function() {} window.onbeforeunload = null window.confirm = function() { return true } var Zhuyurl = 'accessCourseInfo' document.addEventListener("visibilitychange", function() { console.log(document.visibilityState); if (document.visibilityState == "hidden") { //yincang } else if (document.visibilityState == "visible") { if (document.URL.search(Zhuyurl) > 1) { setTimeout(sxrefere, 1000) } } }); function fhback() { window.history.go(-1) } function gbclose() { window.close() } function sxrefere() { window.location.reload() } function Zhuy() { var KC = document.querySelectorAll("div.list>ul>li>a") if (document.getElementsByClassName("current")[0].querySelector('div').className == "yuanbox1") { //课程ing完成了 for (var i = 0; i < KC.length; i++) { if (KC[i].querySelector('div') !== null) { //看过的,是否看完 if (KC[i].querySelector('div').className !== "yuanbox1") { //未完成 KC[i].click() break; } } else { KC[i].click() break; } } } } function Chuy() { if (parseInt(localStorage.getItem('key')) == NaN) { localStorage.setItem('key', 0) } var Lookdpage = parseInt(localStorage.getItem('key')) var zKC = document.querySelectorAll('tbody>tr>td>a') var zKCnum = zKC.length - 1 //2num kc if (Lookdpage < zKCnum) { localStorage.setItem('key', Lookdpage + 1) zKC[Lookdpage].click() } else { localStorage.setItem('key', 0) } } function Shuy() { if (document.URL.search('1212sssd') > 2) { var zzKC = document.querySelectorAll('tbody>tr>td>span') var zzKCurl = document.querySelectorAll('tbody>tr>td>a') for (var i = 0; i < zzKC.length; i++) { if (zzKC[i].innerText == '未学完' || zzKC[i].innerText == '未开始') { localStorage.setItem('Surl', window.location.href) window.location.replace(zzKCurl[i].href) break; } else if (i == zzKC.length - 1) { setTimeout(gbclose, 1104) } } } } setInterval(Shuy, 3124) function Fhuy() { if (document.getElementsByTagName('video').length == 1) { document.getElementsByTagName('video')[0].volume = 0 document.getElementsByTagName('video')[0].play() } if (document.querySelector('iframe').contentWindow.document.querySelector('span.qplayer-currtime').innerText == document.querySelector('iframe').contentWindow.document.querySelector('span.qplayer-totaltime').innerText) { window.location.replace(localStorage.getItem('Surl')) } } function QT() { document.querySelector('div#container').style = "width:530px; height:530px;" var d1 = document.getElementsByClassName('play_box')[0]; var img = document.createElement("img"); img.style = "width:230px; height:230px;" img.src = "https://img.nuannian.com/files/images/23/0305/1677989951-1403.jpg"; d1.appendChild(img); } function Pd() { if (document.URL.search(Zhuyurl) > 2) { setTimeout(Zhuy, 24) setTimeout(QT, 120) } } setTimeout(Pd, 1254) })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址