AutoSetZVV

By shellshock Last update May 26, 2010 — Installed 102 times.

There are 2 previous versions of this script.

// ==UserScript==
// @name          	AutoSetZVV
// @namespace   	http://userscripts.org/scripts/show/61408
// @description  	Auto fills in ZVV informations
// @include        	http://www.zvv.ch/de/
// @author		shellshock
// ==/UserScript==


// Script options
var start = "Zürich, Hegibachplatz";
var ziel = "Zürich, Kunsthaus";
var zeitpunktAnkunft = true;


function AutoSetZVV() {
	document.getElementById("date_start").value = start;
	document.getElementById("target").value = ziel;
	
	if (zeitpunktAnkunft) {
		document.getElementById("typ_ankunft").checked = true;
	}
	
	document.getElementById("time").focus();
}

AutoSetZVV();