Crack Forclass 3

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Houtar Lyu
今日安裝
0
安裝總數
70
評價
0 0 0
版本
1.4.4
建立日期
2020-08-06
更新日期
2021-12-23
尺寸
3.9 KB
授權條款
GNU General Public License
腳本執行於

Here are the source code:

// ==UserScript==
// @name               Crack Forclass 3
// @namespace          https://www.forclass.tk/script?3
// @version            1.4.4
// @icon               https://houtar.coding.net/p/crackForclass/d/crackForclass/git/raw/master/icon.png
// @description        这同样适用于 Forclass,Sunclass,271BAY,Zhizhiniao
// @author             Houtarchat
// @match              *://*.forclass.net/Student/Dajx*
// @match              *://*.271bay.com/Student/Dajx*
// @match              *://web.zhizhiniao.com/Student/Dati*
// @contributionURL    https://www.houtarchat.ml/donate.html
// @contributionAmount 5 RMB
// @license            GNU General Public License
// @run-at             document-idle
// @noframes
// ==/UserScript==
(() => {

    /* jslint browser: true */
    /* global unsafeWindow */

    unsafeWindow.g_debugmode = true;
    if (unsafeWindow.getRequestParamValue('type') === '5' && window.confirm('补救&批阅?')) {
        unsafeWindow.addToQueue('UploadAttachmentPaperAnswer2', {
            aidx: unsafeWindow.getRequestParamValue('aidx'),
            session: unsafeWindow.getSession(),
            page: 1,
            studentAnswer: `<style type="text/css">#so360{white-space:nowrap}#so360 form{margin:0;padding:0}#so360_keyword{width:307px;height:24px;line-height:24px;font:14px arial;padding:2px 5px;margin-right:5px;border:2px solid #3eaf0e;outline:0;vertical-align:middle}#so360_submit{width:70px;height:32px;line-height:32px;border:0;color:#fff;background:#3fb30e;font-weight:700;font:bold 14px arial;padding:0;cursor:pointer;vertical-align:middle}.g-hd-logo{background-image:url(https://p.ssl.qhimg.com/t010e288a56a0b005e9.png);display:inline-block;height:22px;vertical-align:top;width:100px}.poweredby{margin-top:10px;margin-left:100px}</style><div id="so360"><form action="http://www.so.com/s" target="_blank" id="so360form"><input type="text" autocomplete="off" name="q" id="so360_keyword"> <input type="submit" id="so360_submit" value="搜 索"> <input type="hidden" name="ie" value="utf-8"></form><div class="poweredby">Powered by <a class="g-hd-logo" href="https://www.so.com/"></a> & <a href="https://space.bilibili.com/253498468" target="_blank">Houtarchat</a></div></div>`,
            studentAnswerURL: '',
            size: '',
        }, () => {
            unsafeWindow.http('GetStudentAnsweredPaper', {
                session: unsafeWindow.getSession(),
                page: 1,
                paidx: unsafeWindow.getRequestParamValue('paidx'),
                aidx: unsafeWindow.getRequestParamValue('aidx'),
            }, response =>
                unsafeWindow.addToQueue('SetAssignmentPaperAnswer', {
                    session: JSON.parse(unsafeWindow.sessionStorage.account).session,
                    paIdx: response[0].PAIdx,
                    score: '100',
                    comment: '',
                    page: 0,
                }, () => null, '', true), '');
        }, '', true);
        return;
    }

    switch (window.prompt('是否为您打开?\n输入0取消,\n输入1打开答题页面,\n输入2打开批阅页面')) {
        case '1':
            window.open(`${location.protocol}//${location.host}/Student/Dati${location.search}${location.hash}`);
            break;
        case '2':
            window.open(`${location.protocol}//${location.host}/Student/Pgzy${location.search}${location.hash}`);
            break;
        default:
            break;
    }


    window.onload = () => {
        $('.qoption input,.qoption textarea').unbind('cut copy paste');
    };
})();