您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
网易云课堂自动评作业
当前为
// JavaScript source code // ==UserScript== // @name AutoRate4iCourse163 // @namespace http://github.com/ducksoft // @version 0.2 // @description 网易云课堂自动评作业 // @author DuckSoft & Nekokir // @match *://www.icourse163.org/learn/* // @match *://www.icourse163.org/spoc/learn/* // @require http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js // ==/UserScript== (function () { 'use strict'; $(function () { var mScore; $("#courseLearn-inner-box").each(function () { $(this).bind("dblclick", function () { // choose highest score Array.prototype.slice.call(document.getElementsByClassName("s")).forEach(function (e) { mScore = 0; Array.prototype.slice.call(e.getElementsByClassName("j-select")).forEach(function (e1) { mScore = e1.value; }); Array.prototype.slice.call(e.getElementsByClassName("j-select")).forEach(function (e1) { if (e1.value == mScore) { e1.checked = true; } }); }); // send rubbish comment Array.prototype.slice.call(document.getElementsByTagName("textarea")).forEach(function (e) { e.value = "666"; }); // auto-post document.getElementsByClassName("j-submitbtn")[0].click(); }); }); }); })();