ผู้ใช้:Nid~thwiki/monobook.js
หมายเหตุ: หลังเผยแพร่ คุณอาจต้องล้างแคชเว็บเบราว์เซอร์ของคุณเพื่อดูการเปลี่ยนแปลง
- ไฟร์ฟอกซ์ / ซาฟารี: กด Shift ค้างขณะคลิก Reload หรือกด Ctrl-F5 หรือ Ctrl-R (⌘-R บนแมค)
- กูเกิล โครม: กด Ctrl-Shift-R (⌘-Shift-R บนแมค)
- อินเทอร์เน็ตเอกซ์พลอเรอร์ และ Edge: กด Ctrl ค้างขณะคลิก Refresh หรือกด Ctrl-F5
- โอเปร่า: กด Ctrl-F5
/* <nowiki> */
// ========== แจ้งลบ ==========
$(function() {
//check if called from deletion request
if(document.getElementById('ca-nstab-special')) {
return;
}
if (document.title.indexOf("แก้ไข") != -1) {
if (document.URL.lastIndexOf("&fakeaction=speedydel") == -1)
return;
document.editform.wpTextbox1.value = "{{ลบ}}\n\n" + document.editform.wpTextbox1.value;
document.editform.wpSummary.value = "แจ้งลบ";
document.editform.submit();
return;
}
addTab("javascript:doQsd()", "แจ้งลบ", "ca-sd", "คำสั่งแจ้งลบ", "");
});
function doQsd() {
//edit page
var title = document.title.substr(0, document.title.lastIndexOf(' - วิกิพีเดีย'));
location.assign("/w/index.php?title=" + title + "&action=edit&fakeaction=speedydel");
}
/* */
// ========== Wikiunref ==========
function doQwikiunref() {
document.editform.wpTextbox1.value = "{{ต้องการอ้างอิง}}" + document.editform.wpTextbox1.value;
document.editform.wpSummary.value = "แจ้งต้องการอ้างอิง";
document.editform.submit();
}
function addQwikiunref() {
addTab("javascript:doQwikiunref()", "ขาดอ้างอิง", "ca-unref", "เติมว่าต้องการแหล่งอ้างอิง", "");
akeytt();
}
if (document.title.indexOf("แก้ไข ") == 0) {
if (window.addEventListener) window.addEventListener("load", addQwikiunref, false);
else if (window.attachEvent) window.attachEvent("onload", addQwikiunref);
}
/* */
// ========== Wikiunen ==========
function doQwikiunen() {
document.editform.wpTextbox1.value = "{{ไม่เป็นสารานุกรม}}" + document.editform.wpTextbox1.value;
document.editform.wpSummary.value = "แจ้งไม่เป็นสารานุกรม";
document.editform.submit();
}
function addQwikiunen() {
addTab("javascript:doQwikiunen()", "ไม่เป็นสารานุกรม", "ca-unref", "ไม่เป็นสารานุกรม", "");
akeytt();
}
if (document.title.indexOf("แก้ไข ") == 0) {
if (window.addEventListener) window.addEventListener("load", addQwikiunen, false);
else if (window.attachEvent) window.attachEvent("onload", addQwikiunen);
}
/* */
/* </nowiki> */