Greasy Fork is available in English.
自动批改超星作业,以自定义score数组中的概率打分,并提交下一份
当前为
// ==UserScript==
// @name 自动批改超星作业
// @namespace http://tampermonkey.net/
// @version 0.11
// @description 自动批改超星作业,以自定义score数组中的概率打分,并提交下一份
// @author aYan
// @match https://mooc1.chaoxing.com/*
// @match https://mooc1-1.chaoxing.com/*
// @grant none
// ==/UserScript==
// function here
(function score() {
// 定义分数轮盘
var score = [90,90,90,90,90,90,90,85,95,100]
// 按ID获取分数框元素
var divA = document.getElementById("tmpscore");
// 按轮盘概率填充分数
divA.value=score[Math.floor(Math.random()*10)];
// 超星的批改函数,延时自定义(最大值↓ 最小值↓,单位:毫秒)
setTimeout(pigai, Math.random() * (3000) + 1000);
})();