SCUT library helper

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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

(function() {
    'use strict';
    window.xmSelectTimeDate = function () {
        let arr = [];
        for (let i = 0; i <= 30;++i) {
            let j = Date.today().addDays(i).toISOString().split('T')[0];
            arr.push({name: j, value: j, selected: false});
        }
        arr[0].selected = true;
        return arr;
    }
})();