User:Himmalerin/global.js

/**\ #IMPORTS \**/

importArticles({   type: 'script',    articles: [        /**         * Appearance         */        // Kill animated avatars        'u:dev:MediaWiki:KillAnimatedAvatars.js',

/**        * Utility */

/* User navigation */ // add links to your blog and contribution pages under to nav dropdown 'u:dev:MediaWiki:BlogLink/code.js', // add links to your code pages under to nav dropdown 'u:dev:MediaWiki:CodeLinksDropdown.js', // add links to your code pages under to nav dropdown 'u:dev:MediaWiki:NavCodeLinks.js',

/* misc */ // ddg style bangs for the search bar 'u:dev:MediaWiki:!bang/code.js',

/**        * Chat */       // various useful chat utilities 'u:dev:MediaWiki:ChatHacks.js', ] });

/**\ #NAVIGATION \**/ /** * $Search */

/** * Enable full-width search bar for screens under 1500px wide */

(function {   var nav = document.getElementById('globalNavigation'),    cb = function {        if (!nav.classList.contains('wds-search-is-active')) {            nav.classList.add('wds-search-is-active');        }    },    observer = new MutationObserver(cb);

observer.observe(nav, { attributes: true }); cb; });