这同样适用于 Forclass,Sunclass,271BAY,Zhizhiniao
当前为
// ==UserScript==
// @name Crack Forclass 3
// @namespace https://www.forclass.tk/script?3
// @version 1.0.1
// @description 这同样适用于 Forclass,Sunclass,271BAY,Zhizhiniao
// @author Houtarchat
// @match *://*.forclass.net/Student/Dajx*
// @match *://*.271bay.com/Student/Dajx*
// @contributionURL https://www.houtarchat.ml/donate.html
// @contributionAmount 5 RMB
// @grant none
// @license GNU General Public License
// ==/UserScript==
(function() {
"use strict";
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
return false;
}
g_debugmode = true;
if (getQueryVariable("type") == "5") {
if (window.confirm("补救?")) {
fetch("http://zzn.sun.forclass.net/ANAService.asmx/UploadAttachmentPaperAnswer2", {
"headers": {
"accept": "application/json, text/javascript, */*; q=0.01",
"accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
"content-type": "application/json; charset=UTF-8",
"x-requested-with": "XMLHttpRequest"
},
"referrer": "http://zzn.sun.forclass.net/Student/Dati?aidx=217441&type=5&isdtk=false&paidx=0&atype=%E8%AF%BE%E5%89%8D%E9%A2%84%E5%AD%A6",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": "{\"session\":\"" + JSON.parse(sessionStorage.account).session + "\",\"page\":1,\"aidx\":\"217441\",\"studentAnswer\":\".\",\"studentAnswerURL\":\"\",\"size\":\"\"}",
"method": "POST",
"mode": "cors",
"credentials": "include"
});
}
}
window.alert("Houtarchat 破解!");
tick = function tick() {};
var datiurl = location.protocol + "//" + location.host + "/Student/Dati?aidx=" + aidx;
var pgzyurl = location.protocol + "//" + location.host + "/Student/Pgzy?aidx=" + aidx;
var sd = window.prompt("是否为您打开?\n输入0取消,\n输入1打开答题页面,\n输入2打开批阅页面");
if (sd !== null && sd != "0") {
if (sd == "1") {
window.open(datiurl);
} else if (sd == "2") {
window.open(pgzyurl);
}
}
window.onload = function() {
$(".qoption input,.qoption textarea").unbind("cut copy paste");
};
document.querySelector("#paperoperation > div.el-dati-funcs.el-upload-submit > div.el-dati-submit-td").setAttribute("class", "el-dati-submit-td");
document.querySelector("#paperoperation > div.el-dati-funcs.el-upload-submit > div.el-dati-btn-submit").onclick = function() {
if (window.confirm("如果您无法提交,请点击确定以强制提交")) {
uploadQuestionAnswer(paidx, aidx, true, window.alert("已提交!"));
}
};
})();