MediaWiki:Chat.js

importScriptPage("ChatTags/code.js", "dev");

function isEnabled(module) { var c;	switch (module) { case "chatHacks": c = getCookie("customisation", 2); break; case "tabComplete": c = getCookie("customisation", 4); break; case "multiKick": c = getCookie("customisation", 5); break; case "multiPM": c = getCookie("customisation", 6); break; case "searchBar": c = getCookie("customisation", 7); break; case "stopSideScroll": c = getCookie("customisation", 9); break; case "ignoreURL": c = getCookie("customisation", 8); break; default: return false; }	return (c === "true"); } function updateCookie { chatOptions.look.backgroundColor = $('#backgroundColourinput').val; chatOptions.look.fontColor = $('#fontColourinput').val; chatOptions.look.fontFamily = $('#fontList').val; chatOptions.look.surroundColor = $('#surroundColourinput').val; chatOptions.look.selfPostColor = $('#selfPostColourinput').val; for (var m in chatOptions.modules) { if ( chatOptions.modules.hasOwnProperty( m ) ) { var module = chatOptions.modules[m]; if (typeof module.element != 'undefined' && $(module.element).attr("checked")) { module.enabled = true; } else { module.enabled = false; }		}	}