MediaWiki:Common.js/chatWindowConfig

/* this script will set the window size when logging into chat in case the user uses Google Chrome. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> in case the script is no longer needed, please DO NOT delete this page, but remove its import from MediaWiki:Common.js if (navigator.userAgent.toLowerCase.indexOf("chrome") > -1) { chatWindowConfigs = { url: mw.config.get("wgServer") + "/wiki/Special:Chat", title: "Wiki Chat - " + mw.config.get("wgSiteName"), config: "menubar=no, location=no, resizable=yes, scrollbars=yes, status=yes, width=600, height=600" }	function openRequestedPopup { windowObjectReference = window.open(chatWindowConfigs.url, chatWindowConfigs.title, chatWindowConfigs.config); }	$(document).ready(function {		$('nav.WikiNav a[data-canonical="chat"], button[onclick="ChatEntryPoint.onClickChatButton(\'/wiki/Special:Chat\')"]').attr("onclick","openRequestedPopup; return false;");		$('nav.WikiNav a[data-canonical="chat"]').removeAttr("href");		mw.util.addCSS('a[data-canonical="chat"] {cursor: hand; cursor: pointer;}');	}); }