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 {  $('#WikiaHeader .WikiaLogo a').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)' }; // END Variabili

//=================================== //      Importazioni funzioni //=================================== importArticles({   type: 'script',    articles: [        // AjaxRC        'u:dev:AjaxRC/code.js',        // Wikim*arks        'u:wikimarks:Client.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:TabKeyInserter/code.js',        // Anti-Unicruft        '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',        // Utility scripts        'u:admintools:MediaWiki:Common.js/ajaxRollback.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AjaxBatchDelete/code.js',        'u:vstf:User:Joeyaa/wham.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");