User:KurwaAntics/common.js

importArticles({	type: 'style',	articles: [		'u:dev:MediaWiki:TZclock.css'	] }, {	type: 'script',	articles: [		'u:dev:TZclock.js'	] });

/* ********** Notimodule ********** */ var notimoduleTitle = window.notimoduleTitle || 'Notifications'; var notimodulePagename = window.notimodulePagename || 'Template:Notimodule';

$('#WikiaRail').prepend(' '+ notimoduleTitle +' ');

if ( wgUserGroups.indexOf("sysop") >= 0 ) { $('#notimodule h2').append(''); }

$('#notimodule > div').load('/wiki/'+ notimodulePagename +'?action=render');

/* ********** Live subscriber count ********** */ $('.LiveSubsCount').each(function {   var lsc = $(this).data('name');    $('#WikiaRail').prepend(' ').show; });

/* ********** Tabbed rail ********** */ var hpwrail = window.hpwrail || 'User:KurwaAntics/hpwrail';

$('#WikiaRailWrapper').append(' ') .prepend(' 1 | 2 ');

$('#HPWrail').load('/wiki/'+ hpwrail +'?action=render');

$('.toggle-hpw:not(.active)').click(function{   $('#WikiaRail').toggle;    $('#HPWrail').toggle;    $('.toggle-hpw.active').removeClass('active');    $(this).addClass('active'); });

mw.util.addCSS('.toggle-hpw { cursor: pointer; } .toggle-hpw.active { color: inherit; font-weight: bold; }');