MediaWiki:Wikia.js

importScriptPage('MediaWiki:Snow.js','community'); // number of drops created. var nbDrop = 858; /*// function to generate a random number range. function randRange( minNum, maxNum) { return (Math.floor(Math.random * (maxNum - minNum + 1)) + minNum); } // function to generate drops function createRain { for( i=1;i '); $('#drop'+i).css('left',dropLeft); $('#drop'+i).css('top',dropTop); } } // Make it rain createRain;*/

/* Users blocked infinite */ window.addEventListener('load', function {	// Timeouts are always a terrible way to go, but UserTags has no event dispatched when it finished loading.	setTimeout(function { if (document.getElementById('UserProfileMasthead') === null) return; var blockTag = document.querySelector('.tag.usergroup-blocked.blocked-user'); if (blockTag === null) return; new mw.Api.get({			action: 'query',			list: 'blocks',			bkprop: 'expiry',			bktimestamp: new Date.getTime,			bkusers: wgTitle		}).done(function(d) {			if (d.query.blocks[0] && d.query.blocks[0].expiry == 'infinity') {				blockTag.innerHTML = 'Shattered';			}		}); }, 250); });