User:LiaSakura/global.js

importArticles({	type: "script",	articles: [		"w:dev:PurgeButton/code.js", /* Add "purge" option to page controls */		"w:dev:AjaxRC/code.js", /* Auto-refresh */		"w:dev:RevealAnonIP/usercode.js", /* Reveal AnonIP */		"w:c:community:User:LiaSakura/global.js/randompagelink.js", /* Special:Random > Special:Random/main in navigation */		"w:c:avatar:MediaWiki:Common.js/wallgreetingbutton.js", /* Add a button to edit Message Wall Greeting */		"w:c:community:User:LiaSakura/Gadget-HotCat.js", /* Manage categories easier */		"w:c:answers:User:The_Mol_Man/Annihilate.js", /* Batch delete protect */	] });

// // ============================================================ // displayTimer // ============================================================ var refreshDate; function addDate { var UTCDate = ((new Date).toUTCString).replace("GMT", "(UTC)"); $('#showdate').empty.append(' ' + UTCDate.substring(5) + ' '); window.clearTimeout(refreshDate); refreshDate = window.setTimeout(addDate, 1000); } $(document).ready(function {   if (skin == 'oasis')         $(' ').appendTo('#GlobalNavigation');    else        $('#p-personal ul').prepend(' ');    addDate;    refreshDate = window.setTimeout(addDate, 1000);    $('#displayTimer').css({'font-size': "12px"}); }); //