User:LaVey/global.js

/* Click to open menus on navigation bar */ $('.wds-community-header__local-navigation .wds-dropdown').click(function(e) {   var $this = $(this);    if ($this.hasClass('hovered')) return;    e.preventDefault;    $this.addClass('hovered'); }).mouseleave(function {    $(this).removeClass('hovered'); });

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

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

/* NoImageLightbox */ window.NoImageLightbox = { novideo: true }; importArticles({   type: 'script',    articles: [        'u:dev:NoImageLightbox/code.js'    ] });

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

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

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

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