User:Mxn/monobook.js

/* HIM */

document.write(' '); var radio = true, runHIM = true; function HIM { if (runHIM) { elCC = document.getElementById('p-tb'); if (elCC != null) {  if (radio) { HIMHTML = ' Gõ tiếng Việt '; HIMHTML += ' Tự động [F9] '; HIMHTML += ' Telex (?) '; HIMHTML += ' VNI (?) '; HIMHTML += ' VIQR (?)</a> '; HIMHTML += '<input id="him_viqr2" name="viet_method" type="radio" onclick="setMethod(4);"' + (method == 4 && on_off==1?'CHECKED':'') + ' /> <label class="radio" for="him_viqr2">VIQR* '; HIMHTML += '<input id="him_off" name="viet_method" type="radio" onclick="setMethod(-1);"' + (on_off==0?'CHECKED':'') + ' /> <label class="radio" for="him_off">Tắt [F12] '; HIMHTML += '<input id="him_daucu" name="viet_method" type="checkbox" onclick="setDauCu(this);"' + (dauCu == 1?'CHECKED':'') + ' /> <label class="radio" for="him_daucu">Bỏ dấu kiểu cũ [F7] '; HIMHTML += '<input id="him_ckspell" name="viet_method" type="checkbox" onclick="setSpell(this);"' + (dockspell == 1?'CHECKED':'') + ' /> <label class="radio" for="him_ckspell">Đúng chính tả [F8]  '; elCC.innerHTML = HIMHTML + elCC.innerHTML; }  if(useCookie==1) { setCookie=doSetCookie; getCookie=doGetCookie } else { setCookie=noCookie; getCookie=noCookie } setCookie; if(support) statusMessage; runHIM = false; } else {  setTimeout("HIM", 20); } } return true; } HIM; function stopHIM {  HIM; if (runHIM) { if(useCookie==1) { setCookie=doSetCookie; getCookie=doGetCookie } else { setCookie=noCookie; getCookie=noCookie } setCookie; if(support) statusMessage; runHIM=false; } }

addLoadEvent(stopHIM);

/* HIM settings */ // method = 3; // on_off = 0; dauCu = 1; // useCookie = 1;