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

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

หมายเหตุ: หลังเผยแพร่ คุณอาจต้องล้างแคชเว็บเบราว์เซอร์ของคุณเพื่อดูการเปลี่ยนแปลง

  • ไฟร์ฟอกซ์ / ซาฟารี: กด Shift ค้างขณะคลิก Reload หรือกด Ctrl-F5 หรือ Ctrl-R (⌘-R บนแมค)
  • กูเกิล โครม: กด Ctrl-Shift-R (⌘-Shift-R บนแมค)
  • อินเทอร์เน็ตเอกซ์พลอเรอร์ และ Edge: กด Ctrl ค้างขณะคลิก Refresh หรือกด Ctrl-F5
  • โอเปร่า: กด Ctrl-F5
/* <pre><nowiki> */
// ========== สคริปต์จัดให้ ตัวเลือกปรับแต่ง ==========
// == ให้รีเฟรชแคช (Ctrl+F5 สำหรับ IE) ที่หน้านี้หลังจากเปลี่ยนค่า ==
iScriptConfig = {
  gender : "male",
  useFullNames : true,
  useMyWelcome : false,
  usePreciseConversion : true,
  useOldTabsNavigation: false,
  userTalkPageMode : "blank",
  searchURL : "http://www.google.co.th/search?hl=th&q=",
  useEnhancedRollback : true,
  autoNotifyUploader : false,
  wikiProjectTabs : "all",
  bookmark1 : ["", ""],
  bookmark2 : ["", ""],
  bookmark3 : ["", ""],
  bookmark4 : ["", ""],
  bookmark5 : ["", ""],
  deluxeSummary1 : ["", ""],
  deluxeSummary2 : ["", ""],
  deluxeSummary3 : ["", ""]
};
 
// ========== สคริปต์จัดให้ สำหรับชาววิกิพีเดีย ==========
// == ให้รีเฟรชแคช (Ctrl+F5 สำหรับ IE) ที่หน้านี้หลังจากแก้ไข หรือเพื่อรับรุ่นล่าสุด ==
document.write ('<script type="text/javascript" src="' 
    + 'http://th.wikipedia.org/w/index.php?title=User:Jutiphan/iScript/main.js' 
    + '&action=raw&ctype=text/javascript&dontcountme=s"></script>') ;
/* <nowiki><pre> */
 
/*  */
function addTab(url, name, id, title, key) {
    var tabs = document.getElementById('p-cactions').getElementsByTagName('ul') [0];
    addlilink(tabs, url, name, id, title, key) ;
}
/*  */
 
/*  */
function addlilink(tabs, url, name, id, title, key) {
    var na = document.createElement('a') ;
    na.href = url;
    na.appendChild(document.createTextNode(name)) ;
    var li = document.createElement('li') ;
    if(id) li.id = id;
    li.appendChild(na) ;
    tabs.appendChild(li) ;
    na.accesskey = key;
    var pref = 'alt-';
    if(((clientPC.indexOf('AppleWebKit') !=-1) && (clientPC.indexOf('spoofer') ==-1)) || navigator.userAgent.toLowerCase().indexOf( 'mac' ) != -1 ) pref = 'control-';
    if(clientPC.indexOf('opera') !=-1) pref = 'shift-esc-';
    if(key && title) na.title = title + ' [' + pref + key + ']';
    else if(title) na.title = title;
    else if(key) na.title = '[' + pref + key + ']';
    return li;
}
/*  */
 
/*  */
// ========== Edit Section 0 ==========
function addEditSection0() {
  ta['ca-edit-0'] = ['', 'Edit the zeroth section of this page'];
  if (!document.getElementById) return;
  x = document.getElementById('ca-edit') ;
  if(!x) return;
  y = document.createElement('LI') ;
  y.id = 'ca-edit-0';
  if (x.className == 'selected') {
    if (/&action=edit&section=0$/.test(window.location.href)) {
      x.className = 'istalk';
      y.className = 'selected';
    } else {
      x.className = 'selected istalk';
    }
  } else if (x.className == 'selected istalk') {
    if (/&action=edit&section=0$/.test(window.location.href)) {
      x.className = 'istalk';
      y.className = 'selected istalk';
    } else {
      y.className = 'istalk';
    }
  } else {
    y.className = x.className;
    x.className = 'istalk';
  }
  z = document.createElement('A') ;
  if (x.children) {
    z.href = x.children[0].href + '&section=0';
    z.appendChild(document.createTextNode('0')) ;
    y.appendChild(z) ;
    document.getElementById('p-cactions').children[1].insertBefore(y,x.nextSibling) ;
  } else {
    z.href = x.childNodes[0].href + '&section=0';
    z.appendChild(document.createTextNode('0')) ;
    y.appendChild(z) ;
    document.getElementById('p-cactions').childNodes[3].insertBefore(y,x.nextSibling) ;
  }
}
 
if (document.title.indexOf("Editing ") == -1) {
  if (window.addEventListener) window.addEventListener("load", addEditSection0, false) ;
  else if (window.attachEvent) window.attachEvent("onload", addEditSection0) ;
}
 
/*  */