משתמש:Shim'on/modern.js

מתוך ויקיפדיה, האנציקלופדיה החופשית

הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.

  • פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
  • גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
  • אינטרנט אקספלורר / אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
  • אופרה: ללחוץ על Ctrl-F5.
//
// סקריפט 2: לקוח מ[[ויקיפדיה:סקריפטים/2]]
// פונקציה שמספקת תקציר עריכה אוטומטי כשעורכים גרסה ישנה. התקציר האוטומטי הוא "שחזור לגרסה x"
// 
function oldVersEdit(){
 if(document.location.search.indexOf("&action=edit&oldid=") != -1 && document.getElementById('mw-revision-info')!=null){
document.editform.wpSummary.value="שחזור לגרסה "+ document.location.search.substring(document.location.search.indexOf("&oldid=")+7,document.location.search.length);
 }
}
$(oldVersEdit);
// עד כאן סקריפט 2
//
// סקריפט 5: לקוח מ[[ויקיפדיה:סקריפטים/5]]
// פונקציה להוספת רשימת אזהרות כשעורכים דף שיחה של אנונימי
// created by [[user:ערן]]
//
function talkIPTool() {
  var title = (document.title.substr(0, document.title.lastIndexOf(" - ")));
  templatesList=document.getElementById('edit-templates');
  if(templatesList==null) templatesList=document.getElementById('editing-warn'); 
  if(templatesList!=null && title.indexOf('.')!=title.lastIndexOf('.')){
   warList='אזהרות: <select onchange="document.editform.wpSummary.value+=this[selectedIndex].title; document.editform.wpTextbox1.value += \'{{ס:\' + this[selectedIndex].title + \'}} ~~\' + \'~~\';this.selectedIndex=0;">';
   warList += '<option title="">בחרו מהרשימה כדי להוסיף</option>'
   warList += '<option title="אזהרה">אזהרה</option>'
   warList += '<option title="הבל">הבל</option>'
   warList += '<option title="הזמנה">הזמנה</option>'
   warList += '<option title="ניסויים">ניסויים</option>'
   warList += '<option title="תודה">תודה</option>'
   warList += '<option title="ויקיזציה">ויקיזציה</option>'
   warList += '<option title="לך">לך</option>'
   warList += '<option title="תלונה">תלונה</option>'
   warList += '<option title="טעות">טעות</option>'
   warList += '<option title="נייטרליות">נייטרליות</option>'
   warList += '<option title="נחסמת">נחסמת</option>'
   warList += '<option title="מילון">מילון</option>'
   warList += '<option title="כבר קיים">כבר קיים</option>'
   warList += '<option title="שגיאה" >שגיאה</option>'
   warList += '<option title="העתקה">העתקה</option>'
   warList += '<option title="פרסומת">פרסומת</option>'
   warList += '<option title="נמחק">נמחק</option>'
   warList += '<option title="הסבר">הסבר</option>'
   warList += '<option title="בוטל">בוטל</option>'
   warList += '<option title="סגנון">סגנון</option>'
   warList += '</select>'
   templatesList.innerHTML=warList+templatesList.innerHTML;
  }
 }
addLoadEvent(talkIPTool);
// עד כאן סקריפט 5
//
//
// סקריפט 12: לקוח מ[[ויקיפדיה:סקריפטים/12]]
// הקוד מוסיף אפשרות לערוך את ההקדמה של הערך
//
function addEditSection0() {
  x = document.getElementById('ca-edit');
  if (!x) return;
  ta['ca-edit-0'] = ['', 'ערוך את ההקדמה'];
  y = document.createElement('LI');
  y.id = 'ca-edit-0';
  
  // if is edit page and is section 0, then mark "0" as seleted and mark "עריכה" as unseleted
  var isSelected = (x.className.indexOf('selected') != -1);
  var isTalk = (x.className.indexOf('istalk') != -1);
  var isSection0 = (/&action=edit&section=0$/.test(window.location.href));
  //alert(isSelected + " " + isTalk + " " + isSection0);
  if (isSelected) {
    if (isSection0) {
      y.className = x.className;
      x.className = (isTalk) ? 'istalk' : '';
    } else {
      if (isTalk) y.className = 'istalk';
    }
  }

  // add the "0" li element
  var z = document.createElement('A');
  z.href = x.childNodes[0].href + '&section=0';
  z.appendChild(document.createTextNode('0'));
  y.appendChild(z);
  x.parentNode.insertBefore(y,x.nextSibling);

  // add summary if editing section 0
  if ( isSection0 )
    document.getElementById("wpSummary").value = "/* עריכת ההקדמה */ ";
}
$(addEditSection0);
// עד כאן סקריפט 12




document.write('<scr' + 'ipt type="text/javascript" src="' 
             + 'http://he.wikipedia.org/w/index.php?title=משתמש:Yonidebest/monobook.js/temp2.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s"></scr' 
             + 'ipt>');
rcboxPageTitle="שם הדף עם התוכן האישי";
importUserScript(26);
importUserScript(10);
importUserScript(27);