Thread:LightningD/@comment-5434184-20130210014051

// ==UserScript== // @name       Options // @namespace  None // @description None // @include    http://*.wikia.com/wiki/Special:Chat* // @exclude		http://mlp.wikia.com/wiki/Special:Chat* // @exclude		http://callofduty.wikia.com/wiki/Special:Chat* // @exclude		http://cod.wikia.com/wiki/Special:Chat* // @version    1 // @grant	none // ==/UserScript== /**  * Function to set a cookie  * @param  cookie_name A string representing the cookie's name <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * <span class="sh_type" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(0,255,0);">@param <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> data The value of the cookie to be set <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> */ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">setCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( cookie_name<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, data <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var domain <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= wgServer<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">split <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"//" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">)[ <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">1 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">]; document<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. cookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= cookie_name <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"=" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ data <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"; max-age=" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">60 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">* <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">60 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">* <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">24 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">* <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">150 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"; path=/; domain=" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ domain<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">/** <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * Function to get a cookie's value <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * <span class="sh_type" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(0,255,0);">@param <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> cookie_name A string representing the cookie's name <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * <span class="sh_type" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(0,255,0);">@param <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> pos The index of the value to get from the cookie <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * <span class="sh_type" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(0,255,0);">@return <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> The string value of the cookie <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> */ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( cookie_name<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, pos <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var x<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, y<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, cookie_array <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= document<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. cookie<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">split <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">";" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">for <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var i<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">0 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; i <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">< cookie_array<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. length<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; i<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">++) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ x <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= cookie_array<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">[ i<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">]. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">substr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">0 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, cookie_array<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">[ i<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">]. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"=" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">)); y <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= cookie_array<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">[ i<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">]. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">substr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( cookie_array<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">[ i<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">]. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"=" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">)+ <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">1 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); x <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= x<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">replace <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_regexp" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(204,0,204);">/^\s+|\s+$/g <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( x <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">== cookie_name<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var style_objects <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= y<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">split <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">return <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">unescape <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( style_objects<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">[ pos<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">]); <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">/** <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * Function to check if a chat options module is enabled <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * <span class="sh_type" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(0,255,0);">@since <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> 1.3.0 <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * <span class="sh_type" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(0,255,0);">@author <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> Sactage <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * <span class="sh_type" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(0,255,0);">@param <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> name The name of the options module <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * <span class="sh_type" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(0,255,0);">@return <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> boolean <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> */ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">isEnabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( module<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var c<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">switch <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( module<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">case <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"chatHacks" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: c <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">2 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">break <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">case <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"tabComplete" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: c <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">4 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">break <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">case <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"multiKick" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: c <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">5 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">break <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">case <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"multiPM" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: c <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">6 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">break <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">case <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"searchBar" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: c <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">7 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">break <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">case <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"stopSideScroll" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: c <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">9 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">break <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">case <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"ignoreURL" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: c <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">8 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">break <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">default <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">return <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">false <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">return <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( c <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">=== <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"true" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">// Store chat customisation options as an object <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var chatOptions <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ fontColor<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">1 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">), fontFamily<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">3 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">), surroundColor<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">10 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">), selfPostColor<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">11 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">), backgroundColor<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">getCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">0 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ chatHacks<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ element<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#chatHacks" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">isEnabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"chatHacks" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">), loaded<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">false <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, load<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;"> <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#pingspan" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). length <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">> <span class="sh_number" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">0 <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">|| <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">this <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. loaded<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) 					<span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">return <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">;  				<span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">importScriptPage <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'User:Phillycj/chat2.js' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'c' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">);  				<span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">this <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. loaded <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, tabComplete<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ element<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#tabComplete" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">isEnabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"tabComplete" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">), loaded<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">false <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, load<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;"> <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">importScriptPage <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"User:Joeytje50/tabinsert.js" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"rs" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">this <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. loaded <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, multiKick<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ element<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#multiKick" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">isEnabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"multiKick" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">), loaded<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">false <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, load<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;"> <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">((! wgUserGroups<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"chatmoderator" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">&& <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">! wgUserGroups<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"sysop" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">&& <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">! wgUserGroups<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"staff" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">&& <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">! wgUserGroups<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"helper" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">&& <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">! wgUserGroups<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"vstf" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">)) <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">|| <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"multiKickerButton" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). length<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">return <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">// Do not load <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">importScriptPage <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"User:Madnessfan34537/multikick.js" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"cod" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'<a id="multiKickerButton" class="wikia-button" href="javascript:showPopup" style="position:absolute; right:55px; top:22px;">Multikick</a>' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">appendTo <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.Write' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">// to prevent issues with the button not loading <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">this <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. loaded <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, multiPM<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ element<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#multiPM" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">isEnabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"multiPM" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">), loaded<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">false <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, load<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;"> <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">importScriptPage <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"MediaWiki:Chat.js/multipms.js" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"cod" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">this <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. loaded <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, searchBar<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ element<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#searchBar" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">isEnabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"searchBar" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">), loaded<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">false <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, load<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;"> <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">importScriptPage <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"MediaWiki:Chat.js/searchbar.js" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"cod" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">this <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. loaded <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, ignoreURL<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ element<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#ignoreURL" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">isEnabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"ignoreURL" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">), loaded<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">false <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, load<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;"> <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'head' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">append <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'<style type="text/css">li[data-user="URL"] {display:none;} ' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">this <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. loaded <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, stopSideScroll<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ element<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#stopSideScroll" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">isEnabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"stopSideScroll" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">), loaded<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">false <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, load<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;"> <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'head' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">append <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'<style type="text/css">#WikiaPage .Chat .message { word-wrap: break-word; } ' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">this <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. loaded <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">/** <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * Applies updated settings to the chat skin <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> */ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">updateChatSkin <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;"> <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'body' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">css <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">" font-size: 11px; font-family: inherit;">: chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. surroundColor<span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.WikiaPage' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">css <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">" font-size: 11px; font-family: inherit;">: chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. backgroundColor<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"color" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontColor<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"font-family" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontFamily<span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); 	<span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.Chat' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">css <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"font-family" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontFamily<span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); 	<span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.Rail' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">css <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"font-family" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontFamily<span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); 	<span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.ChatHeader' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">css <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">" font-size: 11px; font-family: inherit;">: chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. backgroundColor<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"font-family" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontFamily<span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); 	<span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var selfPostElement <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= document<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">createElement <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'style' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">);  	selfPostElement<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. innerHTML <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.Chat .you{background:' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. selfPostColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">' !important;}' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'head' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">append <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( selfPostElement<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.Write [name="message"]' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">css <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"color" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontColor<span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.Write .message' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">css <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">" font-size: 11px; font-family: inherit;">: chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. backgroundColor<span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.ChatHeader .User .username' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">css <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"color" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">: chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontColor<span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">for <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var m <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">in chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var module <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">[ m<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">]; <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">typeof module<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">=== <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'boolean' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">&& module<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">&& <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">! module<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. loaded<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ 			module<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">load <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">;  		<span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">}  	<span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">}  <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">}  <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">/**  <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * Displays the options window <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> */ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">openOptions <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;"> <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">// TODO: Kill this with fire? There has to be a better way to do this - perhaps use $.showModal <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var optionsWindowHTML <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'<section style="left:50%; top: 50px; width: 600px; z-index: 2000000002; margin-left:-300px;" class="modalWrapper" id="optionsWindow"><button class="close wikia-chiclet-button" onclick="cancelChanges"><img src="http://slot2.images.wikia.nocookie.net/__cb57523/common/skins/oasis/images/icon_close.png"> Options <section class="modalContent"> <form method="" name="" class="WikiaForm "> <p style="font-size:120%; font-weight:bold; font-style:italic;">Colour changes <p style="font-size:80%;">Enter a <a href="http://www.w3schools.com/html/html_colornames.asp" target="_blank">colour name</a> or <a href="http://html-color-codes.info/" target="_blank">colour hex</a> Chat background <input type="text" name="backgroundColourinput" id="backgroundColourinput" value="' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. backgroundColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'"/>  Self-post background <input type="text" name="selfPostColourinput" id="selfPostColourinput" value="' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. selfPostColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'"/>  Surround <input type="text" name="surroundColourinput" id="surroundColourinput" value="' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. surroundColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'"/>  Font colour <input type="text" name="fontColourinput" id="fontColourinput" value="' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'"/> <p style="font-size:120%; font-weight:bold; font-style:italic;">Font  Font family <select id="fontList"><option value="arial" style="font-family:arial;">Arial <option value="courier new" style="font-family:courier new;">Courier new <option value="georgia" style="font-family:georgia;">Georgia <option value="palatino linotype" style="font-family:palatino linotype;">Palatino linotype <option value="Comic Sans MS" style="font-family:Comic Sans MS;">Comic sans <option value="tahoma" style="font-family:tahoma;">Tahoma <option value="Trebuchet MS" style="font-family:Trebuchet MS;">Trebuchet MS <option value="Verdana" style="font-family:Verdana;">Verdana <option value="Lucida Console" style="font-family:Lucida Console;">Lucida Console   <p style="font-size:120%; font-weight:bold; font-style:italic;">Added functionality <input type="checkbox" name="chatHacks" value="chatHacks" id="chatHacks"/> Enable <a href="http://c.wikia.com/wiki/User:Monchoman45/ChatHacks.js" target="_blank">chathacks</a>    <input type="checkbox" name="multiPM" value="multiPM" id="multiPM"/> Enable <a href="http://callofduty.wikia.com/wiki/User:Madnessfan34537/multipm.js" target="_blank">multi PM</a> <input type="checkbox" name="tabComplete" value="tabComplete" id="tabComplete"/>Enable <a href="http://runescape.wikia.com/wiki/User:Joeytje50/tabinsert.js" target="_blank">tab complete</a>   <input type="checkbox" name="searchBar" value="searchBar" id="searchBar"/>Enable <a href="http://callofduty.wikia.com/wiki/MediaWiki:Chat.js/searchbar.js" target="_blank">search bar</a> <input type="checkbox" name="multiKick" value="multiKick" id="multiKick" />Enable <a href="http://callofduty.wikia.com/wiki/User:Madnessfan34537/multikick.js" target="_blank">multi kick</a>    <input type="checkbox" name="ignoreURL" value="ignoreURL" id="ignoreURL"/>Ignore URL in main chat <input type="checkbox" name="stopSideScroll" value="stopSideScroll" id="stopSideScroll"/>Stop the sidescroll bar to appear after someone spams <a onclick="updateCookie" class="wikia-button">Update!</a> <a onclick="cancelChanges;" id="cancel" class="wikia-button secondary">Cancel</a>  ' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'body' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">append <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( optionsWindowHTML<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">// Check if various modules have been enabled by the user, and check their boxes if so <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. chatHacks<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#chatHacks" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">attr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"checked" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. multiPM<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#multiPM" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">attr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"checked" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. tabComplete<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#tabComplete" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">attr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"checked" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. searchBar<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#searchBar" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">attr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"checked" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. multiKick<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#multiKick" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">attr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"checked" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. ignoreURL<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#ignoreURL" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">attr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"checked" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. stopSideScroll<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#stopSideScroll" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">attr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"checked" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">// Set certain modules' checkboxes to disabled if specific conditions are not met <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">(! wgUserGroups<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"chatmoderator" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">&& <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">! wgUserGroups<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"sysop" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">&& <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">! wgUserGroups<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"staff" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">&& <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">! wgUserGroups<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"helper" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">&& <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">! wgUserGroups<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">indexOf <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"vstf" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">)) 		<span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#multiKick" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">attr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"disabled" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( wgServer <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">!== <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"http://*.wikia.com" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#ignoreURL" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">attr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"disabled" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"select option[value='" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontFamily <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"']" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">attr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"selected" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"selected" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">// sets the font selector to the one chosen currently <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'body' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">append <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'<div style="height: 100%; width: 100%; z-index: 2000000001; opacity: 0.65; display: block;" data-opacity="0.65" class="blackout"> ' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">/** <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * Close the options window without saving any changes <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> */ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">cancelChanges <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;"> <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'#optionsWindow' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">remove <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.blackout' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">remove <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">/** <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> * Saves user options and stores them in a cookie for persistence across sessions <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;"> */ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">function <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">updateCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;"> <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. backgroundColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'#backgroundColourinput' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">val <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'#fontColourinput' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">val <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontFamily <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'#fontList' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">val <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. surroundColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'#surroundColourinput' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">val <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. selfPostColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'#selfPostColourinput' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">val <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">for <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var m <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">in chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">var module <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">[ m<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">]; <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">typeof module<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. element <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">!= <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'undefined' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">&& <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( module<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. element<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">attr <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"checked" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">)) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ module<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">true <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">else <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ module<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">false <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">// Set the cookies <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">setCookie <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"customisation" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">, chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. backgroundColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. chatHacks<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. fontFamily <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. tabComplete<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. multiKick<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. multiPM<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. searchBar<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. ignoreURL<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. modules<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. stopSideScroll<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. enabled <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. surroundColor <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">", " <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">+ chatOptions<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. look<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. selfPostColor<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); 	<span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">updateChatSkin <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">;  	<span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'#optionsWindow' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">remove <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">;  	<span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.blackout' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">remove <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">// Add Options button <span class="sh_keyword" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(178,104,24);">if <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">(! <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">"#chatOptionsButton" <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). length<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">) <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">{ <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">$ <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'.Rail' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">). <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">prepend <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">( <span class="sh_string" style="outline:0px;font-size:11px;font-family:inherit;color:rgb(255,0,0);">'<div id="chatOptionsButton" onclick="openOptions;" style="margin:auto; cursor: pointer; font-size:150%; bottom:4px; padding-bottom:2px; border-bottom: 1px solid #CCCCCC; width:90%;" align="center"><img src="http://www.derehamreclaim.co.uk/_images-pages/icon-hammerSpanner.jpg" width="18px"/> Options ' <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">); <span class="sh_comment" style="outline:0px;font-size:11px;font-family:inherit;color:green;">// Prevent multiple buttons from being appended <span class="sh_cbracket" style="outline:0px;font-size:11px;font-family:inherit;">} window<span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">. onload <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">= <span class="sh_function" style="outline:0px;font-size:11px;font-family:inherit;color:blue;">updateChatSkin <span class="sh_symbol" style="outline:0px;font-size:11px;font-family:inherit;">; <ac_metadata title="code"> </ac_metadata>