SCUT library helper

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

目前為 2020-09-07 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==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;
    }
})();