User:MetroKaiser/global.js

//1. Imports importArticles({   type: "script",    articles: [        'u:dev:MediaWiki:FollowDropdown/code.js',        'u:dev:MediaWiki:WallGreetingButton/code.js',        'u:dev:MediaWiki:ViewRemoved/code.js',        'u:dev:MediaWiki:DiscussionsActivity.js',        'u:dev:MediaWiki:ContribsLink/code.js'    ] });

//2. WAM window.railWAM = { logPage: 'Участник:MetroKaiser/WAM log', loadOnPage: 'Служебная:WikiActivity', lang: 'ru', }; importArticles({   type: 'script',    articles: [        // ...        'u:dev:MediaWiki:RailWAM/code.js'    ] });

//3. Navigation scroll (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); });