User:MetroKaiser/global.js

//1. Imports of Wall Greeting Button, Showing Deleted Messages, Discussions Activity 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',    ] });

//2. WAM on English wikies window.railWAM = { logPage: 'User:MetroKaiser/WAM log', loadOnPage: 'Special:WikiActivity', lang: 'en', }; importArticles({   type: 'script',    articles: [        // ...        'u:dev:MediaWiki:RailWAM/code.js'    ] });

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

//4. 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); });