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

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

// Highlight Users highlight = { selectAll: false, vanguard: '#cc66ff', vstf: '#ff66ff', helper: '#993399', staff: '#ddaa00', 'content-moderator': '#006600', threadmoderator: '#006600', chatmoderator: '#006600', bureaucrat: '#ff00ff', sysop: '#ff00ff', bot: '#000066', 'bot-global': '#000066' }; // Highlight Users 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 //=================================== importArticles({   type: 'script',    articles: [        'u:dev:AbuseLogRC.js',        'u:dev:AjaxBatchDelete/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AntiUnicruft/code.js',        'u:dev:ChatHacks.js',        //'u:dev:DifferentSkinEditor/code.js',        'u:dev:EditConflictAlert/code.js',        //'u:dev:FastDelete',        'u:dev:FileUsageAuto-update/code.js',        'u:dev:FindAndReplace/code.js',        'u:dev:GlobalEditcount/code.js',        'u:dev:HighlightUsers/code.js',        'u:dev:ImportJSPage/code.js',        'u:dev:LastEdited/code.js',        'u:dev:MassNullEdit/code.js',        'u:dev:NewImages.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:QuickDelete/code.js',        'u:dev:QuickDiff/code.js',        //'u:railgunscript:MediaWiki:RailgunClient.min.js',        'u:dev:RailWAM/code.js', 'u:dev:RecentChangesMultiple/code.2.js', 'u:dev:RedirectManagement/code.js', 'u:dev:RevealAnonIP/code.js', 'u:dev:TabKeyInserter/code.js', 'u:dev:ThreadIndicator/code.js', 'u:dev:Thread Inspection/code.js', 'u:dev:UnsafeScripts/code.js', 'u:dev:UTCClock/code.js', 'u:dev:ViewDeleted/code.js', 'u:dev:ViewRemoved/code.js', 'u:dev:View_Source/code.js', 'u:dev:WHAM/code.2.js', 'u:dev:Wikimarks/code.js' ] });

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

// Personalizzazioni CSS /* Ultime modifiche (it) */ if ( wgCanonicalSpecialPageName === 'WikiActivity' || wgCanonicalSpecialPageName === 'Recentchanges' && wgContentLanguage === 'it' && wgDBname != 'itonepiecefanon' ) { importArticles({       type: "style",        article: "u:it.onepiece:MediaWiki:Common.css/ultimemodifiche.css"    }); } /* Ultime modifiche (en) */ if ( wgCanonicalSpecialPageName === 'WikiActivity' || wgCanonicalSpecialPageName === 'Recentchanges' && wgContentLanguage === 'en' ) { importArticles({       type: "style",        article: "u: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);    }); }