User:Килобайт/global.js

var MultiUploadoption = { max: 100 }; importArticles({   type: 'script',    articles: [        'u:dev:MultiUpload/code.js'    ] });

window.fdButtons = []; window.fdButtons.push(   {        summary: 'Vandalism',        label: 'Van'    },    {        summary: 'Spam',        label: 'Spam'    },    {        summary: 'Unused',        label: 'Un'    },    {        summary: 'Replacement',        label: 'Rep'    } ); window.fng = $.extend(true, window.fng, {cp: (window.fng || {}).cp || {} }); window.fng.cp.lang = $.extend(true, {}, window.fng.cp.lang, {    ru: {preview: 'Просмотреть', cancel: 'Отменить', publish: 'Опубликовать'}, }); WHAMDelay = 1000; importArticles({   type: 'script',    articles: [        'u:kocka:MediaWiki:AjaxCommentDelete/code.js',        'u:dev:DupImageList/code.js',        'u:dev:FastDelete/code.js',        'u:dev:Linksweeper/code.js',        'u:dev:MediaWiki:RailWAM/code.js',        'u:dev:AjaxBatchDelete/code.2.js',        'u:dev:Thread Inspection/code.js',        'u:dev:UserRightsRecord/code.js',        'u:dev:MassProtect/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:MultiUpload/code.js',        'u:dev:WHAM/code.2.js',        'u:dev:CommentPreview/code.js'    ]

});

importArticles({   type: 'script',    articles: [        'u:dev:EditBio/code.js',    ] });

importScriptPage('MediaWiki:Rollback/code.js', 'dev');

importArticles({   type: 'script',    articles: [        // ...        'u:dev:MediaWiki:UserCheck/code.js'    ] });

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:LinkToDiscussionsProfileIfTheyDontHaveLivePosts/code.js',    ] });

importArticles({   type: 'script',    articles: [        'u:dev:UTCClock/code.js',    ] });

importScriptPage( 'YouShallNotPass/code.js', 'dev' );

importArticles({   type: 'script',    articles: [        'u:dev:AjaxRC/code.js',        'MediaWiki:localScript.js',        'u:dev:FloatingToc/code.js'    ] });

massCategorizationDelay = 1000; importScriptPage('MediaWiki:MassCategorization/code.js', 'dev');

importArticles({   type: 'script',    articles: [        'u:dev:MassBlock/code.js'    ] });

importArticles({   type: "script",    articles: [        "u:dev:MediaWiki:MassPatrol/code.js"    ] });

!function( $ ) { var i = Math.floor( ( Math.random * 5 ) ), anim = { //ы '2': [           'http://i.imgur.com/74eCEhD.png', 'bottom: 30%; left: -300px;', {left: '0px'}, {left: '-300px'}, 'width="112" height="150"', 2000            ]     };    if ( typeof anim[ i ] === 'undefined') return; var data = anim[ i ]; $( 'body' ).append(       '' +            '' +        ' '    ); $( '#MarFNAF' ).animate( data[2], data[5], function {       setTimeout(function{ $( '#MarFNAF' ).animate( data[3], 2000, function {               $( '#MarFNAF' ).remove; // ы            }); }, 2000);   }); }( this.jQuery );

/* Нав. меню */ var spanWiki = document.querySelector('.wds-dropdown__toggle span'); spanWiki.innerHTML = 'Вики'; window.gnWikiLinks = ['//ru.five-nights-at-freddys.wikia.com|FNaFW', '//ru.wikies.wikia.com|ВиВики', '//ru.shadowfight.wikia.com|SFW', '//ru.community.wikia.com|Вики Сообщества']; $(function {    var $menu = $('.wds-global-navigation__link-group .wds-list'),        links = window.gnWikiLinks || [];    if (!$menu.length || !links.length) return;    links.forEach(function (v) { var link = v.replace(/\[|\]/g, ''), $a = $('', {               href: (/(.*?)\||$/.exec(link) || {})[1] || link,                text: (/\|(.*)/.exec(link) || {})[1] || link,                title: link        }); $menu.prepend($('').append($a)); }); }); // == Сворачивание панели при прокрутке колёсиком мыши == (function {   setInterval(function { var oldScrollY = window.pageYOffset || document.documentElement.scrollTop; window.onscroll = function { var scrolled = window.pageYOffset || document.documentElement.scrollTop; var dY = scrolled - oldScrollY; if ( dY > 0 ){ $("#globalNavigation").slideUp(300); } else { $("#globalNavigation").slideDown(300); }       };    }, 1); });