高校邦关闭视频独占限制脚本 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 2018-10-20 13:17:40 UTC 2019-03-06 05:19:04 UTC
Original 华南理工大学高校邦实用脚本 N/A 2017-09-11 13:30:20 UTC 2017-09-11 13:50:09 UTC
  • // ==UserScript==
  • -// @name 华南理工大学高校邦实用脚本
  • -// @namespace i-meto.com
  • -
  • +// @name 高校邦关闭视频独占限制脚本
  • +
  • // @version 0.1.1
  • -// @description 关闭视频独占限制,自动勾选测验题答案
  • -// @author METO
  • -// @match *://*.class.gaoxiaobang.com/class/*
  • +// @description (别的学校的高校邦也能使用了)关闭视频独占限制,原版本失效所以我更新了一下,感谢原作者,2019-3-6可用
  • +// @author 苍茗
  • +// @match *://*.class.gaoxiaobang.com/*
  • // @run-at document-start
  • // @grant none
  • // ==/UserScript==
  • var lock=false;
  • function moocHacker(){
  • // 解放视频
  • - var vid=document.getElementById("vjs_video_3_html5_api");
  • + var vid=document.getElementById("video_player_html5_api");
  • if(vid!=undefined)vid.play();
  • - // 自动填写答案
  • - var chk=document.getElementById("quizSubmit");
  • - if(chk!=undefined&&!lock){
  • - questionList.forEach(function(item,index){
  • - item.answerList.forEach(function(item,index){
  • - if(item.correct=="1"){
  • - var answerId=item.answerId;
  • - Array.prototype.forEach.call(document.getElementsByTagName('i'),function(item,index){
  • - if(item.getAttribute('answer_id')==answerId)item.click();
  • - });
  • - }
  • - });
  • - });
  • - alert("答案填写完毕");
  • - lock=true;
  • - }
  • }
  • window.setInterval(moocHacker,1000);
  • })();

苍茗 (the reported user) has made:

This report has been upheld by a moderator.