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('//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' ) { importArticle({   type: "style",    article: "w:itonepiece:MediaWiki:Common.css/ultimemodifiche.css" }); } /* Ultime modifiche (en) */ if ( wgCanonicalSpecialPageName === 'WikiActivity' || wgCanonicalSpecialPageName === 'Recentchanges' && wgContentLanguage === 'en' ) { importArticle({   type: "style",    article: "w:onepiece:User:Leviathan_89/lastchanges.css" }); } // 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'; // END Variabili

//=================================== //      Importazioni funzioni //=================================== importArticles({   type: 'script',    articles: [        // BotoneraPopups        'w:dev:BotoneraPopups/Code/en.js',        // Railgun client for the siderail by User:Mathmagician        'w:railgunscript:MediaWiki:RailgunClient.min.js',        // ChatHacks.js by Monchoman45        'w:wikicities:User:Monchoman45/ChatHacks.js',        // Wikim*arks        'w:wikimarks:Client.js',        // Utility scripts        'w:admintools:MediaWiki:Common.js/ajaxRollback.js'.        'w:dev:AjaxUndo/code.js',        'w:vstf:User:Joeyaa/wham.js',        'w:janitor:User:Leviathan_89/scripts.js'    ] });