🏠 Home 

sjtu学生评价一键好评

自动填写学生评价


安装此脚本?
// ==UserScript==
// @name         sjtu学生评价一键好评
// @namespace    ulita
// @version      0.2
// @description  自动填写学生评价
// @author       ulita
// @match        https://i.sjtu.edu.cn/xspjgl/*
// @grant        none
// ==/UserScript==
(function() {
$(document).ready(function() {
$("#kc-head").prepend('<button class="btn btn-default btn-default" type="button" id="####shite"><i class="icon-ok bigger-120"></i>&nbsp;一键差评&nbsp;</button>');
$("#kc-head").prepend('<button class="btn btn-default btn-default" type="button" id="####button"><i class="icon-ok bigger-120"></i>&nbsp;一键好评&nbsp;</button>');
$("#####button").on("click", function(){
var choices = document.getElementsByClassName("radio-pjf");
var n = choices.length;
for (var i = 0; i < n; i++)
{
if (i % 5 == 0) {
choices[i].checked = true;
}
}
$(".form-control").val("课非常好,学到很多。");
});
$("#####shite").on("click", function(){
var choices = document.getElementsByClassName("radio-pjf");
var n = choices.length;
for (var i = 0; i < n; i++)
{
if (i % 5 == 4) {
choices[i].checked = true;
}
}
$(".form-control").val("课非常烂,啥也没学到。");
});
});
})();