// ==UserScript== // @name Crack Forclass 4 // @namespace https://www.forclass.tk/script?4 // @version 3.0.0 // @description 这同样适用于 Forclass,Sunclass,271BAY,Zhizhiniao // @author Houtarchat // @match *://*.forclass.net/Account/SignIn* // @contributionURL https://www.houtarchat.ml/donate.html // @contributionAmount 5 RMB // @license GNU General Public License // @grant GM.xmlHttpRequest // @connect zhizhiniao.com // @run-at document-end // @noframes // @downloadURL none // ==/UserScript== (function () { "use strict"; if ( sessionStorage.account != null && typeof sessionStorage.account != "undefined" ) return; GM.xmlHttpRequest({ method: "POST", url: "http://www.zhizhiniao.com/ANAService.asmx/LoginAccountJson", data: JSON.stringify({ session: null, page: 0, account: prompt("Your username here:"), password: prompt("Your password here:") }), headers: { "Content-Type": "application/json; charset=utf-8" }, onload: function onload(data) { var ifr = document.createElement("iframe"); var session; if (JSON.parse(data.response).ReturnText) { alert(JSON.parse(data.response).ReturnText); location.reload(); } session = JSON.parse(data.response).result[0].session; ifr.setAttribute( "src", "http://account.sun.forclass.net/Account/SignIn?session=" + session || "" ); document.head.appendChild(ifr); ifr.onload = function () { window.location.href = "http://zzn.sun.forclass.net/Student/WdzySun"; }; } }); })();