مستخدم:Mido/monobook.js
من ويكيبيديا، الموسوعة الحرة
ملاحظة: قم بإعادة تحميل الصفحة لرؤية التغييرات. إذا لم تظهر التغييرات بعد إعادة التحميل، قد يكون متصفح الإنترنت الذي تستخدمه يقوم بعرض نسخة مخزنة سابقًا. لتجنب عرض هذه النسخة، قد يلزم أن تقوم بأحد هذه الخطوات:
- في متصفح موزيلا أو فايرفوكس أو سفاري اضغظ على مفتاح Shift أثناء قيامك بضغط زر إعادة التحميل (Refresh) أو اضغط Ctrl-Shift-R (Cmd-Shift-R في حاسب أبل).
- في متصفح إنترنت إكسبلورر اضغط على مفتاح Ctrl أثناء قيامك بالنقر على زر إعادة التحميل (Refresh) أو اضغط Ctrl-F5.
- في متصفح كونكيرر (Konqueror) انقر على زر إعادة التحميل (Reload) أو اضغط على مفتاح F5.
- في متصفح أوبرا (Opera) قد يكون من الضروري مسح المحتويات المخزنة عن طريق قائمة التفضيلات (Tools→Preferences).
/* <pre> <nowiki> */ // Add LI link 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); if(id) { if(key && title) { ta[id] = [key, title]; } else if(key) { ta[id] = [key, '']; } else if(title) { ta[id] = ['', title]; } } // re-render the title and accesskeys from existing code in wikibits.js akeytt(); return li; } // Add tab function addTab(url, name, id, title, key){ var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0]; return addlilink(tabs, url, name, id, title, key); } //Please leave the following line //[[en:user:Where/usertabs]] addOnloadHook(function() { if (document.title.search("/") != -1 || document.title.search("- History -") != -1) { //no subpages or history return; } if (document.title.indexOf("مستخدم:") == 0 || document.title.indexOf("نقاش المستخدم:") == 0) { username_a = document.URL.match(/:.*:(.*)/); username=username_a[1]; addTab("http://ar.wikipedia.org/wiki/Special:Contributions/" + username, "contrib", "ca-contrib", "contribs", ""); addTab("http://ar.wikipedia.org/w/index.php?title=Special%3ALog&type=move&user=" + username, "page moves", "ca-pagemoves", "page moves", ""); addTab("http://ar.wikipedia.org/w/index.php?title=Special%3ALog&type=block&user=" + username, "block log", "ca-blog", "blog", ""); addTab("http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?dbname=arwiki_p&user=" + username, "edit count", "ca-kate", "kate", ""); } }); // [[en:User:Lupin/popups.js]] - please include this line document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); // popups menu Arabic Translation by [[user:Marquez]] document.write('<script type="text/javascript" src="' + 'http://ar.wikipedia.org/w/index.php?title=User:Mohammed_Khalil/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); popupAdminLinks=true; popupDelay=1; // End of popups var ArticlePath = '/wiki'; var ScriptPath = '/w/index.php'; // Copied from Wikiwyg function getArticleName() { var loc = document.location; var havetitle = false; var rtn = ""; // Check to see of loc.pathname is ScriptPath+'/index.php'. If it is, then we must use the query string if ( loc.pathname == (ScriptPath) ) { var query = loc.search; try { rtn = query.match(/[&?]title=([^&]+)/)[1]; } catch(er) { // No query, or title doesn't exist return 'الصفحة_الرئيسية'; } } else { // We're using the conical name var arti = ''; // Not using a trailing slash below because it may not exist if (loc.pathname.indexOf(ArticlePath) == 0) { // Using pretty URLs arti = loc.pathname.substring(ArticlePath.length, loc.pathname.length); } else if (loc.pathname.indexOf(ScriptPath) == 0) { // Using less pretty URLs arti = loc.pathname.substring(ScriptPath.length, loc.pathname.length); } else { return 'الصفحة_الرئيسية'; } if (arti.indexOf('/') == 0) { arti = arti.substring(1, arti.length); } else { return 'الصفحة_الرئيسية'; } rtn = arti; } return unescape(rtn); } function addTab(id, after, caption, url) { if (!document.getElementById(id)) { var edit = document.getElementById(after); if (!edit) return; //If the previous tab doesn't exist, don't add this one var editparent = edit.parentNode; //+ var aseclinkcaption = document.createTextNode(caption) //'<a href="/index.php?title=User_talk:Astronouth7303&action=edit&section=new">' var aseclink = document.createElement('a'); aseclink.setAttribute('href',url); var addsectionlinkcaption = aseclink.appendChild(aseclinkcaption); //'<li id="ca-addsection">' var asec = document.createElement('li'); asec.setAttribute('id',id); var addsectionlink = asec.appendChild(aseclink); var addsection = editparent.insertBefore(asec,edit.nextSibling); } } function addEditSection() { var arti = getArticleName(); addTab("ca-editfirst" , 'ca-edit', '0', ScriptPath+"?title="+escape(arti)+"&action=edit§ion=0"); addTab("ca-addsection", 'ca-edit', '+', ScriptPath+"?title="+escape(arti)+"&action=edit§ion=new"); } if (window.addEventListener) window.addEventListener("load",addEditSection,false); else if (window.attachEvent) window.attachEvent("onload",addEditSection); /* </nowiki> </pre> */