User:Ultimate Dark Carnage/global.js

cacheSkip = []; cacheSkipLimit = 1000;

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('MediaWiki:MessageBlocker/code.js', 'dev');

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:NullEditButton/code.js',        'u:dev:MediaWiki:AntiUnicruft/code.js',        //'u:dev:MediaWiki:ArticlePreview/code.js',        'u:dev:MediaWiki:BackToTopButton/code.js',        'u:dev:MediaWiki:PortableCSSPad/code.js',        'u:dev:MediaWiki:ConsistentModules/code.js',        'u:dev:MediaWiki:WHAM/code.js',        'u:dev:MediaWiki:QuickModTools/loader.js',        'u:dev:MediaWiki:CacheCheck/code.js',        'u:dev:MediaWiki:MassNullEdit/code.js',        'u:dev:MediaWiki:WorkingMoreUsersCount/code.js'    ] });

var skin = mw.config.get('skin', skin); if (['oasis', 'wikia'].indexOf(skin) === -1) return; var $WikiaRail = $('#WikiaRail'); if ($WikiaRail.hasClass('loaded')){ $WikiaRail.find(['section', 'div'].join(', ')).filter(function{           var cname = 'module',                isModule = $(this).hasClass(cname);            return isModule;        }).removeClass('module').addClass('rail-module'); } else { $WikiaRail.on('DOMNodeInserted', function(event){           if ($(event.target).hasClass('module')){                $(event.target).removeClass('module');                $(event.target).addClass('rail-module');            }        }); } })(this.mediaWiki, this.jQuery);
 * (function(mw, $){

$(document).ready(function execute{   var $admins_module = $(' ', { 'class': 'AdminsModule rail-module', 'id': 'AdminsModule' }).html(' All Admins ');   function addModule{        var $module = $('#WikiaRail').find('.rail-module:first-child');        if (!$('#AdminsModule').exists){            $module.after($admins_module);        }    }    if (typeof MutationObserver !== 'undefined'){        var MO = new MutationObserver(function(mutations){ mutations.forEach(addModule); });       MO.observe($('#WikiaRail').get(0), { childList: true });    } else {        $('#WikiaRail').on('DOMNodeInserted', function(event){ addModule; });   } });

mw.loader.using(['mediawiki', 'mediawiki.util'], function{       $.ready(function{ "use strict"; var $admin_list = $('#admin-list'), Api = new mw.Api; if (!$admin_list.exists) return; Api.get({               action: 'query',                list: 'allusers',                augroup: 'sysop',                format: 'json'            }).done(function(data){                if (!data.error){                    var $elem = $('');                    data.query.allusers.forEach(function(user){ var $li = $(''), $img = $(' '), $user_link = $(''), $links = $(' '), _links = { 'Talk': '/wiki/User_talk:$1', 'Contributions': '/wiki/Special:Contributions/$1' };                       $user_link.text(user.name); $links.html(                           Object.keys(_links).map(function(name){ var link = '' + name + ''; return link; }).join('•')                       ); $.ajax({                           method: 'GET',                            dataType: 'json',                            url: mw.util.wikiScript('wikia'),                            data: {                                controller: 'UserProfilePageController',                                method: 'renderUserIdentityBox',                                title: 'User:' + user.name,                                format: 'json'                            }                        }).done(function(data){                            var avatar = data.user.avatar;                            avatar = avatar.replace(/\/scale-to-width-down\/(\d+)/g, '/scale-to-width-down/60');                            $img.attr('src', avatar);                        }); $elem.append(                           $li.html([ $img, $user_link, $links ])                       );                    });                    $admin_list.html($elem);                }            }); });   }); })(this.mediaWiki, this.jQuery);
 * (function(mw, $){