'); var top=($(window).height()-alertdiv.height())/2;
var left=($(window).width()-alertdiv.width())/2; alertdiv.css('left',left); textNode.css('margin',"auto"); window.onresize=function(){ var left=($(window).width()-alertdiv.width())/2; alertdiv.css('left',left); };
alertdiv(); var menu=$("span","ul[role='menu']"); var label=$("span","span.label"); var lisel=document.querySelector('#app > div > section > section > header > ul > li:nth-child(2)'); console.log(lisel.innerHTML) var menusize=menu.toArray().length; var labelsize=label.toArray().length; //alert("menusize:"+menusize+ "labelsize:"+labelsize) var divselect=$('div[aria-selected="true"]:has(span)'); var spansel=$('span:not([class="label"])',divselect); for(var i=0;i
// ==UserScript==
// @name 浙江省高校平台刷课new
// @namespace http://tampermonkey.net/
// @version 0.6
// @description 自动播放,自定义倍速播放(需脚本内设置,有说明),使用时需要刷新一次页面
// @author 时光9870
// @author 时光9870
// @include https://www.zjooc.cn/ucenter/student/course/study/*/plan/detail/*
// @require https://cdn.bootcss.com/jquery/3.3.1/jquery.js
// @grant none
// ==/UserScript==
$(function()
{
var vediospeed=16;//自定义播放速度(0.5-16倍速)
var menuindex=0;
var labelindex=0;
setTimeout(() => {
function alertdiv(){
var textNode =$("提示:开始刷课了,请稍等一会儿。。");
var alertdiv=$('
');
var top=($(window).height()-alertdiv.height())/2;
var left=($(window).width()-alertdiv.width())/2;
alertdiv.css('left',left);
textNode.css('margin',"auto");
window.onresize=function(){
var left=($(window).width()-alertdiv.width())/2;
alertdiv.css('left',left);
};
$('body').append(alertdiv);
alertdiv.append(textNode);
alertdiv.hide();
alertdiv.fadeIn(3000);
alertdiv.fadeOut(5000);
}
alertdiv();
var menu=$("span","ul[role='menu']");
var label=$("span","span.label");
var lisel=document.querySelector('#app > div > section > section > header > ul > li:nth-child(2)');
console.log(lisel.innerHTML)
var menusize=menu.toArray().length;
var labelsize=label.toArray().length;
//alert("menusize:"+menusize+ "labelsize:"+labelsize)
var divselect=$('div[aria-selected="true"]:has(span)');
var spansel=$('span:not([class="label"])',divselect);
for(var i=0;i