// ==UserScript== // @name Crack Forclass 4 // @namespace https://www.forclass.tk/script?4 // @version 2.0.2 // @description 这同样适用于 Forclass,Sunclass,271BAY,Zhizhiniao // @author Houtarchat // @match *://zhizhiniao.com/* // @match *://www.zhizhiniao.com/* // @contributionURL https://www.houtarchat.ml/donate.html // @contributionAmount 5 RMB // @license GNU General Public License // @run-at document-idle // @noframes // @downloadURL none // ==/UserScript== (function() { 'use strict'; if ( !! unsafeWindow.loadAccount()) { return; } var handleFunc = function(result, target) { var ifr = document.createElement('iframe'); ifr.setAttribute('src', 'http://account.sun.forclass.net/Account/SignIn?session=' + result[0].session); document.head.appendChild(ifr); ifr.onload = function() { window.location.href = 'http://zzn.sun.forclass.net/Student/WdzySun'; }; }; $.ajax({ type: "POST", url: unsafeWindow.getWebServiceURL('LoginAccountJson'), data: JSON.stringify({ session: null, page: 0, account: prompt('Your username here:'), password: prompt('Your password here:') }), contentType: "application/json; charset=utf-8", dataType: "json", }).done(function(data) { var result = unsafeWindow.getResultData(data); handleFunc(result); } ); })();