Greasy Fork is available in English.

新疆农大社会实践自动填写

新疆农业大学社会实践自动填写

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         新疆农大社会实践自动填写
// @namespace    https://blog.zhecydn.asia/
// @version      1.1
// @description  新疆农业大学社会实践自动填写
// @author       zhecydn
// @match        https://xgxt.xjau.edu.cn/TW/Sys/SystemForm/main.htm
// @match        https://xgxt.xjau.edu.cn/TW/Sys/SystemForm/SocialPractice/StuPersonalDeclareApply.aspx
// @match        https://xgxt.xjau.edu.cn/TW/Sys/SystemForm/SocialPractice/StuPersonalDeclareApply_Edit.aspx*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=www.xjau.edu.cn
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
 var currentUrl = window.location.href;

    if (currentUrl.indexOf('https://xgxt.xjau.edu.cn/TW/Sys/SystemForm/main.htm') !== -1) {
        setTimeout(function() {
        window.location.href = 'https://xgxt.xjau.edu.cn/TW/Sys/SystemForm/SocialPractice/StuPersonalDeclareApply.aspx';
        }, 1000);
    } else {
        setTimeout(function() {
           document.querySelector("#BtnApply").click();
        }, 1000);
        var textBox1 = document.getElementById('PersonalDeclare_PracticeAddress');
        var textBox2 = document.getElementById('PersonalDeclare_ActivityContent');

        textBox1.value = '你的实践地点';
        textBox2.value = '你的实践内容';
    'use strict';
    var inputFile = document.getElementById('PersonalDeclare_ActivityPhoto_SendFile');
    if (inputFile) {
        inputFile.click();
        inputFile.addEventListener('change', function() {
            var uploadBtn = document.getElementById('PersonalDeclare_ActivityPhoto_BtnSend');
            if (uploadBtn) {
                uploadBtn.click();
            }
        });
    }
        setTimeout(function() {
        document.getElementById("Save").click();
        }, 1000);
    }
})();