משתמש:Yonidebest/monobook.js
הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.
- פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
- גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
- אינטרנט אקספלורר / אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
- אופרה: ללחוץ על Ctrl-F5.
// This function is used to include scripts from other Wikipedia pages in mine. I got it from [[:en:User:Omegatron/monobook.js]] who got it from [[:en:User:Quarl/monobook.js]].
function winc(s) {
s = s.replace(/^\[\[/, '').replace(/\]\]$/, '');
document.write('<scr' + 'ipt type="text/javascript" src="'
+ 'http://he.wiktionary.org/w/index.php?title=' + s
+ '&action=raw&ctype=text/javascript&dontcountme=s"></scr'
+ 'ipt>');
}
winc('[[משתמש:Yonidebest/monobook.js/customnav.js]]'); /* Adds custom links in a navbox above community navbox. */
//winc('[[משתמש:Yonidebest/monobook.js/dashfixer.js]]'); /* A Hebrew dash converter. */
winc('[[משתמש:Yonidebest/monobook.js/randomtitle.js]]'); /* Add random titles */
//winc('[[משתמש:Yonidebest/monobook.js/randomtitle2.js]]'); /* Add random titles */
/* הוספת קישור לדפי המשנה של הדף הנוכחי */
function subPagesLink()
{
if ((document.getElementById("t-recentchangeslinked") || document.getElementById("t-whatlinkshere")) && wgNamespaceNumber != 0 && wgNamespaceNumber != 6 && wgNamespaceNumber != -1 && wgNamespaceNumber != 14)
{
var rcntChngsLnkdNode = document.getElementById("t-recentchangeslinked");
if (rcntChngsLnkdNode == null) rcntChngsLnkdNode = document.getElementById("t-whatlinkshere");
var aNode = document.createElement('a');
var liNode = document.createElement( 'li' );
aNode.appendChild(document.createTextNode('דפי משנה'));
var subpagesLink='http://he.wiktionary.org/wiki/%D7%9E%D7%99%D7%95%D7%97%D7%93:Prefixindex/' + wgPageName +'/';
aNode.setAttribute('href' , subpagesLink);
liNode.appendChild(aNode);
rcntChngsLnkdNode.appendChild(liNode);
}
}
$(subPagesLink);