User:Himmalerin/global.js

$(function {	window.himmalerinGlobalJS = {		importJS: function importJS {			importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:Bang.js', 'u:dev:MediaWiki:ThemeToggler.js', 'u:dev:MediaWiki:WatchlistTab.js', ],			});		},

/**		 * ExpandSearch * Have the search bar expanded regardless of screen size */		expandSearch: function expandSearch { 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; },	};

window.himmalerinGlobalJS.importJS; window.himmalerinGlobalJS.expandSearch; });