ผู้ใช้:Liger/monobook.js

จากวิกิพีเดีย สารานุกรมเสรี

หมายเหตุ: หลังจากบันทึกแล้ว, คุณต้องล้างแคชของเบราว์เซอร์เสียก่อน จึงจะเห็นการเปลี่ยนแปลง: Mozilla/Safari/Konqueror: กด Shift ค้าง แล้วกด Reload (หรือ Ctrl-Shift-R), IE: กด Ctrl-F5, Opera: กด F5

  /* <nowiki> */
 
// ========== Stub ==========
function doStub() {
  document.editform.wpSummary.value = "ใส่โครง";
  document.editform.wpTextbox1.value =   document.editform.wpTextbox1.value +"\n\n {{โครง}}" ;
  //document.editform.submit();
}
function addStub() {
  addTab("javascript:doStub()", "โครง", "ca-cat", "ใส่โครง", "");
  akeytt();
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addStub, false);
  else if (window.attachEvent) window.attachEvent("onload", addStub);
}

// ========== Thai ==========
function doThai() {
  document.editform.wpSummary.value = "กำหนดเป็นวิกิประเทศไทย";
  document.editform.wpTextbox1.value =   "{{วิกิประเทศไทย}}\n" + document.editform.wpTextbox1.value  ;
  //document.editform.submit();
}
function addThai() {
  addTab("javascript:doThai()", "ไทย", "ca-cat", "ใส่ไทย", "");
  akeytt();
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addThai, false);
  else if (window.attachEvent) window.attachEvent("onload", addThai);
}


// ========== จัดหมวด ==========
function doCatry() {
  document.editform.wpSummary.value = "จัดหมวด";
  document.editform.wpTextbox1.value =   document.editform.wpTextbox1.value +"\n\n[[หมวดหมู่:]]";
  //document.editform.submit();
}
function addCatry() {
  addTab("javascript:doCatry()", "หมวด", "ca-cat", "จัดหมวด", "");
  akeytt();
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addCatry, false);
  else if (window.attachEvent) window.attachEvent("onload", addCatry);
}


 
// ========== สคริปต์จัดให้ สำหรับหน่วยเก็บกวาดเฉพาะกิจ ==========
document.write('<script type="text/javascript" src="' 
             + 'http://th.wikipedia.org/w/index.php?title=User:Jutiphan/Scripts/SWAT/monobook.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/* */