这同样适用于 Forclass,Sunclass,271BAY,Zhizhiniao
目前為
// ==UserScript==
// @name Crack Forclass
// @namespace https://crack-forclass.houtarchat.ml/
// @version 2.4.10
// @description 这同样适用于 Forclass,Sunclass,271BAY,Zhizhiniao
// @author Houtarchat
// @match *://*.forclass.net/Student/Dati*
// @match *://*.271bay.com/Student/Dati*
// @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") {
window.alert("无需破解!");
return;
}
window.alert("Houtarchat 破解!\n错误修正:\n1.修正了无法上传图片的问题\n2.修正了无法启用剪切、复制、粘贴的问题\n3.修正了脚本有时无效的问题");
tick = function tick() {};
var dajxurl = location.protocol + "//" + location.host + "/Student/Dajx?aidx=" + aidx;
var sd = window.prompt("答案已经被检测到,是否为您打开?\n输入0取消,输入1打开弹出式页面,\n(实验性)输入2打开frame页面");
if (sd !== null && sd != "0") {
if (sd == "1") {
window.open(dajxurl);
} else if (sd == "2") {
var d = document;
var main = d.getElementById("main");
var out = d.createElement("div");
out.setAttribute("class", "dlg-out");
out.setAttribute("style", "z-index:3000;left:362.5px;top:140.5px;display:block");
out.appendChild(main);
var bar = d.createElement("div");
bar.setAttribute("class", "dlg-bar");
bar.appendChild(out);
var title = d.createElement("div");
title.setAttribute("class", "dlg-title");
title.innerText = "Houtarchat";
title.appendChild(bar);
var rtbtns = d.createElement("div");
rtbtns.setAttribute("class", "dlg-rtbtns-out");
rtbtns.appendChild(bar);
var closeE = d.createElement("div");
closeE.setAttribute("class", "dlg-close");
closeE.innerText = "×";
closeE.appendChild(rtbtns);
var body = d.createElement("iframe");
body.setAttribute("class", "dlg-body");
body.setAttribute("src", dajxurl);
body.setAttribute("style", "height:250px;width:450px;left:0");
body.appendChild(out);
var content = body.contentWindow;
var paperarea = content.document.querySelector("#main > div.el-main.el-w1200 > div > div.el-stu-out.el-stu-content > div.el-main-right.el-stu-manual-r > div > div");
paperarea.setAttribute("style", "width:500px");
content.document.querySelector("#header").remove();
content.document.querySelector("#footer").remove();
content.document.querySelector("#main > div.el-main.el-w1200 > div > div.el-stu-out.el-stu-content > div.el-main-left.el-main-left-thin").remove();
}
}
window.onload = function() {
$(".qoption input,.qoption textarea").unbind("cut copy paste");
};
document.getElementsByClassName(".el-dati-btn-submit").onclick = function() {
if (window.confirm("如果您无法提交,请点击确定以强制提交")) {
uploadQuestionAnswer(paidx, aidx, true, window.alert("已提交!"));
}
};
})();