User:Leviathan 89/global.js

//======================================= //      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, %2H:%2M:%2S (UTC)' };

// MassNullEdit nullEditDelay = 1000; nullEditUserButton = true;

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

// View Deleted var ViewDeleted = { noPrompt: true, rc: true, logs: true, modal: { preview: { width: 800 },       content: { width: 800 }   } }; // View Deleted END

// Fast Delete Buttons window.fdButtons = []; window.fdButtons.push(   {        summary: 'Housekeeping',        label: 'HK'    },    {        summary: 'Vandalism',        label: 'VA'    },    {        summary: 'Spam',        label: 'SP'    } ); // Fast Delete Buttons END

//=================================== //      Importazioni funzioni //=================================== mw.loader.using(['mediawiki.util', 'ext.fandom.ContentReview.legacyLoaders.js'], function {   importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:AbuseLogRC.js', 'u:dev:AjaxAbuseLog.js', 'u:dev:MediaWiki:AjaxBatchDelete/code.js', //'u:dev:MediaWiki:AjaxRC/code.js', 'u:dev:MediaWiki:AjaxUndo/code.js', 'u:dev:MediaWiki:AntiUnicruft/code.js', //'u:dev:MediaWiki:BackToTopButton/code.js', - UCP not compatible 'u:dev:MediaWiki:BlogLink/code.js', 'u:dev:MediaWiki:CategoryRenameAuto-update/code.js', //'u:dev:MediaWiki:EditConflictAlert/code.js', 'u:dev:MediaWiki:FastDelete/code.js', 'u:dev:MediaWiki:FileUsageAuto-update/code.js', 'u:dev:MediaWiki:GlobalEditcount/code.js', //'u:dev:MediaWiki:HighlightUsers/code.js', very slow 'u:dev:MediaWiki:ImportJSPage/code.js', 'u:dev:MediaWiki:LastEdited/code.js', 'u:dev:MediaWiki:MassNullEdit/code.js', 'u:dev:MediaWiki:NewImages.js', 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:PageRenameAuto-update/code.js', 'u:dev:MediaWiki:PortableCSSPad/code.js', 'u:dev:MediaWiki:QuickDelete/code.js', 'u:dev:MediaWiki:QuickDiff/code.js', 'u:dev:MediaWiki:RecentChangesMultiple/code.2.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:RevealAnonIP/code.js', 'u:dev:MediaWiki:TabKeyInserter/code.js', 'u:dev:MediaWiki:UnhideUserMasthead/code.js', 'u:dev:MediaWiki:UTCClock/code.js', //'u:dev:MediaWiki:ViewDeleted/code.js', 'u:dev:MediaWiki:View_Source/code.js', 'u:dev:MediaWiki:WHAM/code.2.js', 'u:dev:MediaWiki:Wikimarks/code.js' ]   }); });

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

// Wikim*arks /* Functions */ function purge { $.get('/wiki/' + wgPageName + '?action=purge', function {        location.reload(true);    }); }