studiVZ in Blau *NEU*

By atomtigerzoo Last update Apr 28, 2009 — Installed 5,695 times. Daily Installs: 3, 4, 2, 0, 1, 0, 0, 0, 4, 4, 0, 3, 2, 6, 0, 3, 5, 1, 5, 3, 1, 5, 2, 0, 1, 6, 3, 3, 3, 3, 3, 3

There are 2 previous versions of this script.

// ==UserScript==
// @name           studiVZ in Blau *NEU*
// @namespace      http://www.atomtigerzoo.com/labor/studivz
// @description    Das StudiVZ in Blau anstatt Rot/Rosa
// @include        http://*studivz.net/*
// @version        0.4.1
// ==/UserScript==

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

function changeTopBanner() {
		document.getElementById('Grid-Page-Center-Top-Title').childNodes[1].setAttribute('src', 'http://labor.atomtigerzoo.com/studivz/banner.png');

		document.getElementById('Chat_Header_State').childNodes[1].childNodes[3].setAttribute('src', 'http://labor.atomtigerzoo.com/studivz/ch_down.png');

		if (document.getElementById('Chat_Header_State').childNodes[1].childNodes[1].getAttribute('src') == 'http://static.pe.studivz.net/20090304-1/Img/Chat/Common/ic_on_half.png') {
			document.getElementById('Chat_Header_State').childNodes[1].childNodes[1].setAttribute('src', 'http://labor.atomtigerzoo.com/studivz/ch_on.png');
		}
		if (document.getElementById('Chat_Header_State').childNodes[1].childNodes[1].getAttribute('src') == 'http://static.pe.studivz.net/20090304-1/Img/Chat/Common/ic_off_half.png') {
			document.getElementById('Chat_Header_State').childNodes[1].childNodes[1].setAttribute('src', 'http://labor.atomtigerzoo.com/studivz/ch_off.png');
		}
}

addGlobalStyle('@import url(http://labor.atomtigerzoo.com/studivz/studivz_new.css);');
changeTopBanner();