User:Leviathan 89/global.js

// wikEd /* Install Wikipedia:User:Cacycle/wikEd in-browser text editor */ /* var wikEdConfig = { 'highlightSyntaxPreset': false, 'useWikEdPreset': false, 'usingPreset': false, 'fullScreenModePreset': false, 'closeToolbarPreset': false, 'refHidePreset': false, 'diffPreset': false } importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript'); // END wikEd

// Personalizzazioni CSS /* Ultime modifiche (it) */ if ( wgCanonicalSpecialPageName === 'WikiActivity' || wgCanonicalSpecialPageName === 'Recentchanges' && wgContentLanguage === 'it' && wgDBname != 'itonepiecefanon' ) { importStylesheetPage('MediaWiki:Common.css/ultimemodifiche.css', 'it.onepiece'); } /* Ultime modifiche (en) */ if ( wgCanonicalSpecialPageName === 'WikiActivity' || wgCanonicalSpecialPageName === 'Recentchanges' && wgContentLanguage === 'en' ) { importStylesheetPage('User:Leviathan 89/lastchanges.css', 'onepiece'); } // END Personalizzazioni CSS

// Wikim*arks /* Functions */ function chat { if (window.ChatEntryPoint && ChatEntryPoint.onClickChatButton) { ChatEntryPoint.onClickChatButton(true, '/wiki/Special:Chat'); } } function purge { $.get('/wiki/' + wgPageName + '?action=purge', function {        location.reload(true);    }); }

// Wikia logo /* Wikia logo will link to www.wikia.com */ $(function {  $('#globalNavigation a.WikiaLogo').attr('href', 'http://www.wikia.com/'); });

//======================================= //      Variabili per le funzioni //======================================= // Ajax auto-refresh ajaxPages = ['Speciale:UltimeModifiche', 'Speciale:OsservatiSpeciali', 'Speciale:WikiActivity', 'Speciale:ImmaginiRecenti', 'Speciale:Registri', 'Special:RecentChanges', 'Special:WikiActivity', 'Special:Watchlist', 'Special:Log', 'Special:Contributions', 'Special:NewFiles', 'Forum:Support_Requests', 'Forum:General_Discussion', 'Admin_Forum:Watercooler', 'Admin_Forum:Technical_Help', 'Admin_Forum:General_Questions', 'Admin_Forum:Getting_Started']; AjaxRCRefreshText = 'Aggiornamento automatico';

// Display Clock window.DisplayClockJS = { format: '%d %B %Y, %H:%M:%S (UTC)' };

// MassNullEdit nullEditDelay = 1000; nullEditUserButton = true; // END Variabili

//=================================== //      Importazioni funzioni //=================================== importArticles({   type: 'script',    articles: [        // AjaxRC        'u:dev:AjaxRC/code.js',        // Wikim*arks        'u:dev:Wikimarks/code.js',        // Railgun client for the siderail by User:Mathmagician        //'u:railgunscript:MediaWiki:RailgunClient.min.js',        // ChatHacks.js by Monchoman45        //'u:community:User:Monchoman45/ChatHacks.js',        // TabKeyInserter        'u:dev:MediaWiki:TabKeyInserter/code.js',        // Anti-Unicruft        'u:dev:MediaWiki:AntiUnicruft/code.js',        // Portable CSS Pad        'u:dev:MediaWiki:PortableCSSPad/code.js',        // RevealAnonIP        'u:dev:MediaWiki:RevealAnonIP/code.js',        // Display Clock        'u:dev:MediaWiki:DisplayClock/code.js',        // Utility scripts        'u:admintools:MediaWiki:Common.js/ajaxRollback.js',        'u:dev:MediaWiki:AjaxUndo/code.js',        'u:dev:MediaWiki:AjaxBatchDelete/code.js', 'u:dev:MediaWiki:FindAndReplace/code.js', 'u:dev:MediaWiki:RecentChangesMultiple/code.2.js', 'u:dev:MediaWiki:MassNullEdit/code.js', 'u:dev:MediaWiki:WHAM/code.2.js' ] }, {   type: 'style', articles: [ // Custom user highlight 'u:it.onepiece:MediaWiki:Common.css/highlight.css' ] });

// Internal $.getScript("http://internal.vstf.wikia.com/wiki/User:Leviathan_89/scripts.js?action=raw&ctype=text/javascript");

// Temp $(function {   if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Contributions' ) {        var target = mw.util.getParamValue( 'target' ) || mw.config.get( 'wgPageName' ).split('/', 2)[1] || null;        if ( !target ) {            return;        }        $( '#contentSub > a:nth-child(9)' ).attr( 'href', 'http://community.wikia.com/wiki/Special:LookupUser?target=' + encodeURIComponent( target ) );    } });