Greasy Fork

Greasy Fork is available in English.

自动批改超星作业

自动批改超星作业,以自定义score数组中的概率打分,并提交下一份

当前为 2020-05-29 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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);
})();