SCUT library helper

我家图书馆还蛮大的。不来约一发吗?看累了就直接睡觉,没问题的(安心感)

Version vom 07.09.2020. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         SCUT library helper
// @namespace    https://www.scut.edu.cn/
// @version      0.1
// @description  我家图书馆还蛮大的。不来约一发吗?看累了就直接睡觉,没问题的(安心感)
// @author       NaN
// @match        https://mypass.scut.edu.cn/hsmobile/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';
    window.xmSelectTimeDate = function () {
        let obj = {};
        let obj1 = {};
        let arr = [];
        let today = new Date();
        let yy = (today.getMonth() + 1 == 12) ? today.getFullYear() + 1 : today.getFullYear();
        let mm = (today.getMonth() + 1 == 12) ? 1 : today.getMonth() + 1;
        // old piece of shit
        for (let i = today; i <= new Date(yy, mm, today.getDate()); i.setDate(i.getDate() + 1)) {
            let j = new Date(i).toISOString().split('T')[0];
            // Global_VAR.dApplyDate = j;
            console.log(j);
            arr.push({name: j, value: j, selected: false});
        }
        arr[0].selected = true;
        return arr;
    }
})();