蓝墨云班课互评作业自动评分

怎么看待云班课作业互评无脑打低分?

云班课匿名互评,提交作业的可以看见答案,然后评分。但是一个人可以给所有人评分,所以会有人给你们打底分,即使你写的是全对的,亲身体验,发现了它的弊端,毕竟不是所有人都是很好的,就算这样,老师也不可能每天都在批改所有人的作业,而且作业毕竟多,没办法给人公平。只能在心里骂那个缺德的人。


如何做一个聪明人

全评满分!!!!!!!!!!!!!!!!!

  • 脚本链接https://greasyfork.org/zh-CN/scripts/424128
  • 效果图
    cCQF2D.png
  • 代码
// ==UserScript==
// @name         蓝墨云班课作业互评自动评满分
// @namespace    nawlgzs@163.com
// @version      1.0
// @description  云班课作业互评自动评满分
// @author       Ne-21
// @compatible   Chrome
// @match        *://www.mosoteach.cn/web/index.php?c=interaction_homework&m=homework_result_list*
// @grant        unsafeWindow
// @require      http://libs.baidu.com/jquery/2.0.0/jquery.min.js
// @license      MIT
// ==/UserScript==

(function() {
    var _self = unsafeWindow;
    var $ = _self.jQuery || top.jQuery;
    $(document).ready( function () {
        alert("请点击确定开始自动评分    BY.Ne-21,博客:https://gocos.cn");
        console.log("开始自动评分BY.Ne-21,博客:https://gocos.cn");
        var list = document.querySelectorAll('.homework-item');
        var total = list.length - 1;
        var i = 1;
        let t = setInterval( function () {
            console.log("共计:" + total + "位,开始评分:第" + i + "位");
            var one = list[i];
            // i++;
            doPingfen(one);
            i++;
            if ( i == total+1) {
            // 清除Interval的定时器
            clearInterval(t);
            console.log("全部完成");
            };
        },3000);
    });
})();

function doPingfen(one) {
    // console.log(one);
    try{
        var s = one.querySelector("div.appraised-box.cl > div > span.user-current-score").textContent;

        // console.log(s);
        if ( s == "请评分" ) {
            one.querySelector("div > span.appraise-button.appraised-button-enable").click()
            console.log("选中评分");
            let a = setInterval( function () {
                one.querySelector('div.item-score-box > div.score-points-item.cl > ul > li:nth-child(1)').click();
                console.log("选中分数");
                one.querySelector('#score').click();
                console.log("评分完成");
                // 清除Interval的定时器
                clearInterval(a);
            },3000);
        } else {
            console.log("重复评分,跳过!")
        };
        return;
    } catch(e) {
        console.log("可能是没有提交。" + e);
        return;
    };
};

版权声明:
作者:Ne-21
链接:https://blog.gocos.cn/archives/65.html
来源:云淡风轻
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
海报
蓝墨云班课互评作业自动评分
怎么看待云班课作业互评无脑打低分? 云班课匿名互评,提交作业的可以看见答案,然后评分。但是一个人可以给所有人评分,所以会有人给你们打底分,即使你写的……
<<上一篇
下一篇>>