高校邦课程进度百分百! was reported 2021-07-18 as an unauthorized copy of 高校邦视频自动播放器.

高校邦视频自动播放器 does not specify a license, which means distributing copies is not allowed unless explicit permission is given.

Script License Created Updated
Reported 高校邦课程进度百分百! N/A 2021-05-31 11:54:20 UTC 2021-06-07 06:26:04 UTC
Original 高校邦视频自动播放器 N/A 2018-12-06 09:52:00 UTC 2018-12-06 09:52:00 UTC
  • // ==UserScript==
  • -// @name 高校邦视频自动播放器
  • +// @name 高校邦课程进度百分百!
  • // @namespace http://tampermonkey.net/
  • -// @version 0.1
  • -// @description 自动播放高校邦视频,防止自动暂停,并自动答题。
  • -// @author BUAA1873
  • -// @match https://*.class.gaoxiaobang.com/class/*/unit/*/chapter/*
  • +// @version 1.4
  • +// @description 高校邦进度百分百,高校通用,公众号ONE课堂独家奉献!
  • +// @author 小小怪
  • +// @include https://imooc.class.gaoxiaobang.com/*
  • +// @include https://hist-cxcy.class.gaoxiaobang.com/*
  • +// @include https://*.class.gaoxiaobang.com/*
  • +// @icon https://src.onlinedown.net/d/file/p/2020-06-01/398af836347fa5ae271deba05274ecdf.png
  • // @grant none
  • // ==/UserScript==
  • (function () {
  • 'use strict';
  • + setTimeout(function(){
  • + //init() //取消掉按钮,改成自动跳过!
  • + progressHundred();
  • + auto_play();
  • + },3000 );
  • +
  • +})();
  • +
  • +function init() {
  • +
  • + //将以上拼接的html代码插入到网页里的a标签中
  • + var ul_tag = $(".chapter-title");
  • + if (ul_tag) {
  • + ul_tag.append('<a href="javascript:void(0);" class="btn" id="skip_video" onclick="alert(" 点我");="" style="color: #face0e;border: 1px solid black;background: black;border-radius: 10px;padding: 5px;margin-left: 50px;font-size: 20px;font-family: kaiti;">跳过当前课程</a>');
  • + }
  • + var A = document.getElementById("skip_video");
  • + A.onclick = function () {
  • + progressHundred();
  • + }
  • +}
  • +
  • +function progressHundred() {
  • + var video=document.querySelector('video');
  • + //如果没有获取到video,则提示
  • + if (video==null)
  • + alert("未能成功获取到video,请等待视频开始播放后修改");
  • + //成功获取video,开始工作
  • + else
  • + {
  • + //var obj=jwplayer(0);
  • + var obj=video;
  • + var href=window.location.href;
  • + var school = href.substring(href.indexOf("https://")+8,href.indexOf(".class"));
  • + var index=href.indexOf("chapterId=");
  • + var index2=href.indexOf('&',index);
  • + var arg1=href.substring(index+10,index2>0?index2:href.length);
  • + var arg2=href.substring(href.indexOf("class/")+6,href.indexOf("/unit"));
  • + var arg3 = href.substring(href.indexOf("unit/")+5,href.indexOf("/chapter"));
  • + var time=new Date().getTime();
  • + var duration=parseInt(obj.duration);
  • + //
  • + var infoUrl = "https://"+school+".class.gaoxiaobang.com/class/"+arg2+"/chapter/"+arg1+"/api?"+time;
  • + $.post(infoUrl,function(result){
  • + var maxViewTime = result.userRecord.maxViewTime;
  • + if(!maxViewTime){
  • + maxViewTime = 0;
  • + }
  • + var url="https://"+school+".class.gaoxiaobang.com/log/video/"+arg1+"/"+arg2+"/api?"+time;
  • + var data='[{"state":"listening","level":2,"ch":'+duration+',"mh":'+maxViewTime+',"ct":'+time+'}]';
  • + $.post(url,{rl:href,data:data},function(result){
  • + // alert("进度修改完毕!Wx公众号ONE课堂独家奉献!");
  • + });
  • + });
  • + var arg4 = parseInt(arg1)+1;
  • + var nexturl = location.href="https://"+school+".class.gaoxiaobang.com/class/"+arg2+"/unit/"+arg3+"/chapter/"+arg4+"#!state=chapter&chapterId="+arg4;
  • + }
  • +};
  • +function auto_play() {
  • + 'use strict';
  • function executeUntilSuccess(func, trySpan) {
  • let xs = function () {
  • let succ = true;
  • }
  • else {
  • clearInterval(token);
  • - alert("放完了!");
  • + alert("所有课程进度修改完毕!Wx公众号“ONE课堂”独家奉献!");
  • }
  • }
  • }
  • });
  • });
  • }, 100);
  • -})();
  • +};

SouthWind9984 (the reported user) has made:

This report has been upheld by a moderator.