MediaWiki:Wikia.js

// New chat code, without DI's complex positioning rules importScriptPage('User:Mfaizsyahmi/chat2.js', 'hitlerparody'); // I thought this one's deprecated //importScriptPage('User:Mfaizsyahmi/poll.js', 'hitlerparody');

// for the Background template, use with caution $(".backgroundcssinject").first.each(function{   bgurl = $(".backgroundcssinject .url").text;    bgcolor = $(".backgroundcssinject .color").text;    bgrpt = $(".backgroundcssinject .repeat").text;    bgatt = $(".backgroundcssinject .attachment").text;    bgpos = $(".backgroundcssinject .position").text;    $("body").css('background', bgcolor + ' url(' +bgurl+ ') ' +bgrpt+ ' ' +bgatt+ ' ' +bgpos); });

// Wiki Navigation additions $("header nav > ul> li:first-child > ul.subnav-2").append('NewsFeatured');

// button to stop bg music if there's any // 22 Oct 12: made to also remove halloween background music if ($("#yolo").length || $("#halloweenbg").length) $("header nav > ul> li:first-child > ul.subnav-2").append(' :stopmusic:'); $("#stopmusic").click(function{   $("#yolo, #halloweenbg").remove; });

// 404 image $('.noarticletext').prepend('');

// In FC suggestions thread, automatically scrolls down to the last post $('body.page-Thread_9640').animate({        scrollTop: $("li.message:last").offset.top     }, 500);

// Contests deadline alert function deadlineNotify { var deadline_now = new Date; if (deadline_now.getDate >= 28 && $.cookie("HPW_CONTEST-notification-dismissed")!=="1") { if ($("#WikiaNotifications").length==0) { $("body").append(''); }		$("#WikiaNotifications").append(' </a> The UotM, PotM and UA Unterganging contests are nearing their deadlines! Go to the Contests Portal</a> for links and nominate before it\'s too late! </li>'); } } function closeContestAlert{ $.cookie("HPW_CONTEST-notification-dismissed", "1", { path:"/", expires:7 }); $("#contest-deadline-alert").parent.remove; } deadlineNotify