高校邦HTML5,华南理工大学高校邦实用脚本

How to install

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install a user script manager extension to install this script.

OK

How to install

You will need to install an extension such as Stylus to install this script.

You will need to install an extension such as Stylus to install this script.

You will need to install an extension such as Stylus to install this script.

You will need to install a user style manager extension to install this script.

You will need to install a user style manager extension to install this script.

OK

// ==UserScript==

// @name 华南理工大学高校邦实用脚本

// @namespace i-meto.com

// @version 0.1.1

// @description 关闭视频独占限制,自动勾选测验题答案

// @author METO

// @match *://*.class.gaoxiaobang.com/class/*

// @run-at document-start

// @grant none

// ==/UserScript==

'use strict';

(function(){

var lock=false;

function moocHacker(){

// 解放视频

var vid=document.getElementById("vjs_video_3_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);

})();

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值