// ==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://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 // @downloadURL none // ==/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;} })();