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);    }); }

//======================================= //      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

// LastEdited // http://dev.wikia.com/wiki/LastEdited window.lastEdited = { avatar: true, size: false, diff: true, comment: true, time: 'timestamp', lang: 'it', namespaces: { include: [], exclude: [] },   pages: [] }; // LastEdited END

//=================================== //      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',        // Anti-Unicruft & Unsafe Scripts        'u:dev:UnsafeScripts/code.js',        'u:dev:AntiUnicruft/code.js',        // Portable CSS Pad        'u:dev:PortableCSSPad/code.js',        // RevealAnonIP        'u:dev:RevealAnonIP/code.js',        // Display Clock        'u:dev:DisplayClock/code.js',        // Chat        'u:dev:ChatHacks.js',        // QuickDiff        'u:dev:QuickDiff/code.js',        // QuickDelete        'u:dev:QuickDelete/code.js',        // LastEdited        'u:dev:LastEdited/code.js',        //RailWAM        'u:dev:RailWAM/code.js',        // Global Edits 'u:dev:GlobalEditcount/code.js', // Anti-Unicruft & Unsafe Scripts 'u:dev:UnsafeScripts/code.js', 'u:dev:AntiUnicruft/code.js', // Utility scripts 'u:dev:AjaxUndo/code.js', 'u:dev:AjaxBatchDelete/code.js', 'u:dev:FindAndReplace/code.js', 'u:dev:RecentChangesMultiple/code.2.js', 'u:dev:MassNullEdit/code.js', 'u:dev: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 ) );    } });