User:Leviathan 89/wikia.js

// Ajax auto-refresh /* Opzioni */ ajaxPages = ['Special:RecentChanges', 'Special:WikiActivity', 'Special:Watchlist', 'Special:Log', 'Special:Contributions', 'Special:NewFiles']; AjaxRCRefreshText = 'Aggiornamento automatico'; AjaxRCRefreshHoverText = 'Abilita l&#39;aggiornamento automatico della pagina'; /* Script */ importScriptPage('AjaxRC/code.js', 'dev'); // END of Ajax auto-refresh

// Personalizzazioni CSS /* Ultime modifiche */ if ( wgCanonicalSpecialPageName === 'WikiActivity' || wgCanonicalSpecialPageName === 'Recentchanges' ) { importStylesheetPage('User:Leviathan 89/lastchanges.css', 'onepiece'); } /* Evidenziamento utenti */ if ( wgCanonicalSpecialPageName === 'WikiActivity' || wgCanonicalSpecialPageName === 'Recentchanges' || wgAction === 'history') { importStylesheetPage('MediaWiki:Common.css/highlight.css', 'it.onepiece'); } // END Personalizzazioni CSS

// ============================================================ // 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, 5000); } $(document).ready(function {   if (skin == 'oasis')         $(' ').appendTo('#GlobalNavigation');    else        $('#p-personal ul').prepend(' ');    addDate;    refreshDate = window.setTimeout(addDate, 5000);    $('#displayTimer').css({'font-size': "12px"}); });