Crack Forclass 2

这同样适用于 Forclass,Sunclass,271BAY,Zhizhiniao

目前为 2020-07-20 提交的版本,查看 最新版本

// ==UserScript==
// @name               Crack Forclass 2
// @namespace          https://crack-forclass-2.houtarchat.ml/
// @version            1.0.3
// @description        这同样适用于 Forclass,Sunclass,271BAY,Zhizhiniao
// @author             Houtarchat
// @match              *://*.forclass.net/Student/Wdzy*
// @match              *://*.271bay.com/Student/Wdzy*
// @contributionURL    https://www.houtarchat.ml/donate.html
// @contributionAmount 5 RMB
// @grant              none
// @license            GNU General Public License
// ==/UserScript==

(function () {
  "use strict";

  var xhttp;
  if (window.XMLHttpRequest) {
    // 用于现代浏览器的代码
    xhttp = new XMLHttpRequest();
  } else {
    // 应对老版本 IE 浏览器的代码
    xhttp = new ActiveXObject("Microsoft.XMLHTTP");
  }

  var rt;
  xhttp.onreadystatechange = function () {
    if (this.readyState == 4 && this.status == 200) {
      rt = this.responseText;
    }
  };

  xhttp.open(
    "POST",
    document.location.protocol +
      "//" +
      document.location.host +
      "/ANAService.asmx/GetSCStudentAssignmentList",
    true
  );
  xhttp.setRequestHeader("Content-type", "application/json; charset=UTF-8");
  var session = getSession();
  var data = {
    count: 10,
    fromDate: "",
    index: 1,
    page: 1,
    sName: "待完成",
    session: session,
    stateName: "全部",
    subject: "全部",
    toDate: ""
  };
  xhttp.send(JSON.stringify(data));

  var i = 4;
  var rt1 = "";
  var len = rt.length;
  for (; i < len; i++) {
    rt1 += rt.d.result[i].AName + ":" + rt.d.result[i].AIdx + "\n";
  }
  window.prompt("Response", rt1);
})();