User:Forge the Hybrid/global.js

importArticles({   type: 'script',    articles: [        // Chat        'u:dev:MediaWiki:ChatHacks.js',        'u:dev:MediaWiki:FucodeLogger.js',        'u:dev:MediaWiki:FaviconNotifier/code.js',        // Coding        'u:dev:MediaWiki:CodeLinksDropdown.js',        'u:dev:MediaWiki:DisableInfoboxBuilder.js',        // General        'u:dev:MediaWiki:UTCClock/code.js',        // Appearance        'u:dev:MediaWiki:KillAnimatedAvatars.js',        'u:dev:MediaWiki:BlogLink/code.js',                // utilities        'u:dev:MediaWiki:!bang/code.js',        'u:dev:MediaWiki:EditBio/code.js',        // Admin Tools        'u:dev:MediaWiki:AjaxBatchDelete/code.2.js',        'u:dev:MediaWiki:MassCategorization/code.js',    ] });

// Customized version of SandboxTabs, by KockaAdmiralac // https://dev.wikia.com/wiki/SandboxTab (function {   var $header = $('#WikiaUserPagesHeader');    if ($header.exists) {        var title = 'User:' + $header.find('#UserProfileMasthead h1').text + '/sandbox';        $header.find('.tabs-container .tabs').append( $('', { 'data-id': 'sandbox' }).append(               $('', { href: mw.util.getUrl(title), title: title, text: 'Sandbox' })           )        );    } });

// Old version of the BackToTopButton

// A script that adds a "Back To Top" button in the footer of the Oasis theme. // I don't like scrolling back to top on long pages neither do you :) // Created by Noemon from Dead Space Wiki // Used files: window.BackToTopModern = true;

(function(window, $, mw) {   'use strict';    var buttonStart = typeof window.BackToTopStart === 'number' ?            window.BackToTopStart :            window.innerHeight,        scrollSpeed = typeof window.BackToTopSpeed === 'number' ?            window.BackToTopSpeed :            600,        fadeSwitch = typeof window.BackToTopFade === 'number' ?            window.BackToTopFade :            600,        $button,        cc = mw.config.get('wgSassParams')['color-community-header'],        theme;    // Double-run protection    if (window.BackToTopLoaded) {        return;    }    window.BackToTopLoaded = true;    function init {        $button.hide;        $(window).scroll($.throttle(100, function {            if ($(this).scrollTop > buttonStart) {                switch (fadeSwitch) {                    case 0:                        $button.show;                        break;                    default: $button.fadeIn; break; }           } else { switch (fadeSwitch) { case 0: $button.hide; break; default: $button.fadeOut; break; }           }        }));    }    function click { $('body, html').animate({           scrollTop: 0        }, scrollSpeed); return false; }   function modernPreload(l) { if (++_loaded == l) { modernInit(window.dev.wds, window.dev.colors); }   }    function modernInit(wds, colors) { cc   = colors.parse(cc); theme = cc.isBright ? '#000000' : '#ffffff'; cc   = cc.hex; $button = $(' ', {           id: 'BackToTopBtn',            append: [                $(' ', { css: { background: cc, color:     theme },                   'html': wds.icon('menu-control') })           ],            click: click        }).appendTo(document.body); init; }   function arrowInit { $button = $('', {           click: click,            id: 'backtotop'        }).append(            $(' ', { src: 'https://images.wikia.nocookie.net/dev/images/' + (                   (theme === 'black' || window.BackToTopArrowBlack) ?                        'f/f2/BlackToTopArrow' :                        'c/c3/BackToTopArrow_white'                    ) + '.png' })       ).appendTo('#WikiaBarWrapper .toolbar > .tools'); init; }   function oldInit(i18n) { $button = $('', {           click: click,            id: 'backtotop'        }).append(            $(' ', { css: { height: '20px' },               type: 'button', text: (typeof window.BackToTopText === 'string' && window.BackToTopText) || i18n.msg('backToTop').plain })       ).appendTo('#WikiaBarWrapper .toolbar > .tools'); init; }   if (window.BackToTopModern) { var _loaded = 0; [           {                h: 'wds', s: 'u:dev:WDSIcons/code.js' },           {                h:'colors', s: 'u:dev:Colors/code.js' }       ].forEach(function(lib, i, a) {            importArticle({ type: 'script', article: lib.s           });            mw.hook('dev.' + lib.h).add( $.proxy(modernPreload, null, a.length) );       });    } else if (window.BackToTopArrow) { arrowInit; } else { importArticle({           type: 'script',            article: 'u:dev:MediaWiki:I18n-js/code.js'        }); mw.hook('dev.i18n').add(function (i18n) {           i18n.loadMessages('BackToTopButton').done(oldInit);        }); }   importArticle({        type: 'style',        article: 'u:c:User:Forge_the_Hybrid/wikia.css'    }); }(this, jQuery, mediaWiki));