User:Cholewka/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:UsefulDropdown/code.js',        'u:dev:MediaWiki:WHAM/code.2.js',        'u:dev:MediaWiki:RecentChangesModule/code.js',        'u:dev:MediaWiki:FindAndReplace/code.js',        'u:dev:MediaWiki:ToggleDebugMode/code.js',    ] });

// Global nav menu function createLink( target, label, type ) { return { href: mw.util.getUrl( target ), text: label, class: ( type === 'nav' ? 'wds-global-navigation__link' : null ), }; } $('.wds-global-navigation__links').empty.append(   $( '', createLink( 'Special:ListAdmins', 'Admini', 'nav' ) ),    $( '', createLink( 'Special:Contact/general', 'Kontakt', 'nav' ) ),    $( '', createLink( 'Special:Community', 'Społeczność', 'nav' ) ),    $( '', createLink( 'Special:WikiActivity', 'OZ', 'nav' ) ),    $( '', { href: '#', class: 'wds-global-navigation__link', text: '', id: 'get-quick-stats' } ) );