// StudiVZ
// version 0.5
// 2007-04-18
// Copyright (c) 2007, Johannes Buchner
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------
//
// This is a Greasemonkey user script.  To install it, you need
// Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.
//
// To uninstall, go to Tools/Manage User Scripts,
// select "StudiVZ", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name          StudiVZ
// @namespace     http://
// @description   Weg-he style
// @include       http://www.studivz.net/*
// ==/UserScript==

function rewriter(){

var a = document.getElementsByTagName('a');
for (var i = 0; i < a.length; i++) {
	if(a[i].href.match(/logout\.php/g)){
		a[i].innerHTML = 'Weg he!';
		break;
	}else if(a[i].href.match(/doubleclick\.net/g)){
		alert(a[i].text + "\n" + a[i].href);
		a[i].style.display = "none";
		
	}else{	
		//alert(a[i].text + "\n" + a[i].href);
	}
}

}

rewriter();

