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', /* Editor */ // Prevent quote button from overriding existing content 'u:dev:MediaWiki:Quotes.js', // Refresh edit token to hopefully avoid FANDOM eating my replies 'u:dev:MediaWiki:TokenRefresh.js',

/* misc */ // ddg style bangs for the search bar 'u:dev:MediaWiki:!bang/code.js', // Show anon user's IP instead of "A FANDOM user" 'u:dev:MediaWiki:RevealAnonIP/usercode.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; });