User:Applemasterexpert/common.js

$('.wds-global-navigation__search-input').on('keyup', function{	var txt = $(this).val,		m = txt.match(/^\!([a-z]+) /),		namespaces;	if (m) {		namespaces = {			t: "Template",			mw: "MediaWiki",			s: "Special",			h: "Help",			m: "Module",			f: "File",			u: "User",			p: "Project",			c: "Category",		};		if (namespaces.hasOwnProperty(m[1])) {			$(this).val(namespaces[m[1]] + /*This adds a colon after the namespace*/ ":" + txt.substr(m[1].length + 2));		}	} });