ผู้ใช้:Jutiphan/monobook.js
จากวิกิพีเดีย สารานุกรมเสรี
หมายเหตุ: หลังจากบันทึกแล้ว, คุณต้องล้างแคชของเบราว์เซอร์เสียก่อน จึงจะเห็นการเปลี่ยนแปลง: Mozilla/Safari/Konqueror: กด Shift ค้าง แล้วกด Reload (หรือ Ctrl-Shift-R), IE: กด Ctrl-F5, Opera: กด F5
/* ---------------------------------------------------------------------------------- ขออภัย กรุณาอย่าคัดลอกโค้ดในหน้านี้ เนื่องจากว่าอยู่ในระหว่างการทดลองโค้ดใหม่ * สำหรับวิธีการติดตั้ง ให้ดูที่ [[วิกิพีเดีย:สคริปต์จัดให้]] * สำหรับตัวอย่างการใช้งาน ดูได้จากผู้ใช้อื่นเช่น [[ผู้ใช้:Manop/monobook.js]] [[ผู้ใช้:Octahedron80/monobook.js]] [[ผู้ใช้:Posterweb/monobook.js]] หรือผู้ใช้ที่ใช้สคริปต์จัดให้ * หากมีปัญหาในการใช้งาน ใส่โค้ดแล้วใช้ไม่ได้ ช่วยแจ้งให้ทราบได้ที่[[คุยกับผู้ใช้:Jutiphan|หน้าพูดคุย]] ขอบคุณครับ ----------------------------------------------------------------------------------- */ /* <pre><nowiki> */ // ========== สคริปต์จัดให้ สำหรับหน่วยเก็บกวาดเฉพาะกิจ ========== // == ให้รีเฟรชแคช (Ctrl+F5 สำหรับ IE) ที่หน้านี้หลังจากแก้ไข หรือเพื่อรับรุ่นล่าสุด == 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>'); // ========== สคริปต์จัดให้ ตัวเลือกปรับแต่ง ========== // == ให้รีเฟรชแคช (Ctrl+F5 สำหรับ IE) ที่หน้านี้หลังจากเปลี่ยนค่า == iScriptConfig = { gender : "male", useFullNames : false, useMyWelcome : false, usePreciseConversion : true, userTalkPageMode : "blank", useEnhancedRollback : true, enableTestScripts : true, debugMode : 0 }; function doTest() { a = sajax_init_object(); a.open("GET", "http://th.wikipedia.org/w/index.php?title=" + encodeURI("วิกิพีเดีย:กระบะทราย") + "&action=raw", true); a.onreadystatechange = function() { if(a.readyState != 4) return; }; a.send(null); document.body.style.cursor = 'auto'; f = document.createElement("IFRAME"); f.setAttribute("id","tmpFrame"); f.src = wgServer+wgScriptPath + "/index.php?title=วิกิพีเดีย:กระบะทราย&action=edit" document.body.appendChild(f); javascript:void(e=f.contentWindow.document.editform,e.wpTextbox1.value+="\n\nTest message.",e.wpSummary.value="faux AJAX test",e.wpSave.click()) /* e = document.getElementById("tmpFrame").contentWindow; var textbox = f.contentWindow.getElementById( 'wpTextbox1' ); textbox.value+="\n\nทดสอบการทำงาน"; e.document.editform.wpSummary.value="ทดสอบ"; e.document.editform.wpSave.click(); */ } /* addOnloadHook(function() { addTab("javascript:doTest()", "ทดสอบ", "ca-test", "ทดสอบ", ""); }); */ /* var hrline = document.createElement('hr'); var li = document.createElement('li'); if (document.getElementById('p-tb')) { var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0]; if(tb) li.id = tb; li.appendChild(hrline); tabs.appendChild(li); } */ /* </nowiki></pre> */