// ==UserScript==
// @name           1April
// @namespace      http://wezz.se
// @include        *
// ==/UserScript==
// Created just for fun. Use at your own risk.

var arQuote = new Array(31);
arQuote[0] = 'Oh hai. In teh beginnin Ceiling Cat maded teh skiez An da Urfs, but he did not eated dem.';
arQuote[1] = 'Da Urfs no had shapez An haded dark face, An Ceiling Cat rode invisible bike over teh waterz.';
arQuote[2] = 'At start, no has lyte. An Ceiling Cat sayz, i can haz lite? An lite wuz.';
arQuote[3] = 'An Ceiling Cat sawed teh lite, to seez stuffs, An splitted teh lite from dark but taht wuz ok cuz kittehs can see in teh dark An not tripz over nethin.';
arQuote[4] = 'An Ceiling Cat sayed light Day An dark no Day. It were FURST!!!1';
arQuote[5] = 'An Ceiling Cat sayed, im in ur waterz makin a ceiling. But he no yet make a ur. An he maded a hole in teh Ceiling.';
arQuote[6] = 'An Ceiling Cat doed teh skiez with waterz down An waterz up. It happen.';
arQuote[7] = 'An Ceiling Cat sayed, i can has teh firmmint wich iz funny bibel naim 4 ceiling, so wuz teh twoth day.';
arQuote[8] = 'An Ceiling Cat gotted all teh waterz in ur base, An Ceiling Cat hadz dry placez cuz kittehs DO NOT WANT get wet.';
arQuote[9] = 'An Ceiling Cat called no waterz urth and waters oshun. Iz good.';
arQuote[10] = 'An Ceiling Cat sayed, DO WANT grass! so tehr wuz seedz An stufs, An fruitzors An vegbatels. An a Corm. It happen.';
arQuote[11] = 'An Ceiling Cat sawed that weedz ish good, so, letz there be weedz.';
arQuote[12] = 'An so teh threeth day jazzhands.';
arQuote[13] = 'An Ceiling Cat sayed, i can has lightz in the skiez for splittin day An no day.';
arQuote[14] = 'It happen, lights everwear, like christmass, srsly.';
arQuote[15] = 'An Ceiling Cat doeth two grate lightz, teh most big for day, teh other for no day.';
arQuote[16] = 'An Ceiling Cat screw tehm on skiez, with big nails An stuff, to lite teh Urfs.';
arQuote[17] = 'An tehy rulez day An night. Ceiling Cat sawed. Iz good.';
arQuote[18] = 'An so teh furth day w00t.';
arQuote[19] = 'An Ceiling Cat sayed, waterz bring me phishes, An burds, so kittehs can eat dem. But Ceiling Cat no eated dem.';
arQuote[20] = 'An Ceiling Cat maed big fishies An see monstrs, which wuz like big cows, except they no mood, An other stuffs dat mooves, An Ceiling Cat sawed iz good.';
arQuote[21] = 'An Ceiling Cat sed O hai, make bebehs kthx. An dont worry i wont watch u secksy, i not that kynd uf kitteh.';
arQuote[22] = 'An so teh...fith day. Ceiling Cat taek a wile 2 cawnt.';
arQuote[23] = 'An Ceiling Cat sayed, i can has MOAR living stuff, mooes, An creepie tings, An otehr aminals. It happen so tehre.';
arQuote[24] = 'An Ceiling Cat doed moar living stuff, mooes, An creepies, An otehr animuls, An did not eated tehm.';
arQuote[25] = 'An Ceiling Cat sayed, letz us do peeps like uz, becuz we ish teh qte, An let min p0wnz0r becuz tehy has can openers.';
arQuote[26] = 'So Ceiling Cat createded teh peeps taht waz like him, can has can openers he maed tehm, min An womin wuz maeded, but he did not eated tehm.';
arQuote[27] = 'An Ceiling Cat sed them O hai maek bebehs kthx, An p0wn teh waterz, no waterz An teh firmmint, An evry stufs.';
arQuote[28] = 'An Ceiling Cat sayed, Beholdt, the Urfs, I has it, An I has not eated it.';
arQuote[29] = 'For evry createded stufs tehre are the fuudz, to the burdies, teh creepiez, An teh mooes, so tehre. It happen. Iz good.';
arQuote[30] = 'An Ceiling Cat sayed, Beholdt, teh good enouf for releaze as version 0.8a. kthxbai.';

function addEvent( obj, type, fn )
{
	if (obj.addEventListener)
	{
		obj.addEventListener( type, fn, true );
	}
	else if (obj.attachEvent)
	{
		obj["e"+type+fn] = fn;
		obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
		obj.attachEvent( "on"+type, obj[type+fn] );
	}
	else
	{
		obj["on"+type] = obj["e"+type+fn];
	}
}

function linkClick(obj)
{
	var intRand = Math.floor(Math.random() * 6);
	if(intRand < 2 )
	{
		this.innerHTML = arQuote[Math.floor(Math.random() * arQuote.length)];
		return false;
	}
	else if(intRand > 4)
	{
		this.style.display = 'none';
		return false;
	}
	else
	{
		this.href = this.getAttribute('oldHref')
	}
}


(function () {
var datToday = new Date();


if(datToday.getDate() === 1 && datToday.getMonth() === 3)
{
	
	var arLinks = document.getElementsByTagName('a');
	for(var i = (arLinks.length - 1); i >= 0; --i)
	{
		addEvent(arLinks[i],'click',linkClick);
		arLinks[i].setAttribute('oldHref',arLinks[i].href);
		arLinks[i].href = 'javascript:void(0);';
	}
	arLinks = null;
}
datToday = null;

})();

