TUM WZW Shuttlebus

Extension for the website of the Faculty of Biosciences at the Technical University of Munich. By adding the URL parameter "load", you can retrieve the current (load=0) and next week's timetable (load=1). For more information on how to set up the script, please see www.example.org.

目前為 2017-10-12 提交的版本,檢視 最新版本

// ==UserScript==
// @name            TUM WZW Shuttlebus
// @version         1.0
// @description     Extension for the website of the Faculty of Biosciences at the Technical University of Munich. By adding the URL parameter "load", you can retrieve the current (load=0) and next week's timetable (load=1). For more information on how to set up the script, please see www.example.org.
// @author          zsewa
// @namespace       https://gf.qytechs.cn/users/57483
// @match           http://www.sf-biowiss.wzw.tum.de/index.php?id=258*
// @grant           none

// @require         https://code.jquery.com/jquery-3.1.0.min.js
// ==/UserScript==

(function() {
    'use strict';

    var url = new URL(location.href);
    var c = url.searchParams.get("load");
    //console.log(c);
    if(c == 0||c == 1){location.href = $('.download')[c].href;}
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址