TUM WZW Shuttlebus Assistent

Erweiterung für die Website der Fakultät für Biowissenschaften der Technischen Universität München über die der Shuttlebus-Fahrplan zur Verfügung gestellt wird. Durch Hinzufügen des URL-Parameters "load" können Sie den aktuellen (load=0) und den Busfahrplan der nächsten Woche (load=1) abrufen. For more information on how to set up the script, please see https://greasyfork.org/de/scripts/34060.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name            TUM WZW Shuttlebus Assistent
// @name:en         TUM WZW Shuttlebus Assistent
// @version         1.1
// @description     Erweiterung für die Website der Fakultät für Biowissenschaften der Technischen Universität München über die der Shuttlebus-Fahrplan zur Verfügung gestellt wird. Durch Hinzufügen des URL-Parameters "load" können Sie den aktuellen (load=0) und den Busfahrplan der nächsten Woche (load=1) abrufen. For more information on how to set up the script, please see https://greasyfork.org/de/scripts/34060.
// @description:en  Extension for the website of the Faculty of Biosciences at the Technical University of Munich providing the shuttlebus timetable. By adding the URL parameter "load", you can retrieve the current (load=0) and next week's bus schedule (load=1). For more information on how to set up the script, please see https://greasyfork.org/de/scripts/34060.
// @author          zsewa
// @namespace       https://greasyfork.org/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;}
})();