משתמש:דניאל ב./monobook.js
קפיצה לניווט
קפיצה לחיפוש
הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.
- פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
- גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
- אינטרנט אקספלורר / אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
- אופרה: ללחוץ על Ctrl-F5.
function OthPro()
{
var psearch = document.getElementById('p-search');
if (!psearch) return;
wiktlink = "" + window.location;
wiktlink = wiktlink.replace("wikipedia", "wiktionary");
wikqlink = "" + window.location;
wikqlink = wikqlink.replace("wikipedia", "wikiquote");
wikblink = "" + window.location;
wikblink = wikblink.replace("wikipedia", "wikibooks");
wikslink = "" + window.location;
wikslink = wikslink.replace("wikipedia", "wikisource");
var div1 = document.createElement('<div id="p-search1" class="portlet">');
var h5 = document.createElement('H5');
var label = document.createElement('<label for="otherProjects">');
label.appendChild(document.createTextNode('פרויקטים נוספים'));
h5.appendChild(label);
div1.appendChild(h5);
var div2 = document.createElement('<div id="otherProjects" class="pBody">');
var ul = document.createElement('<ul style="margin-left:5em;">');
var li1 = document.createElement('LI');
var a1 = document.createElement('<a href="' + wiktlink + '">');
a1.appendChild(document.createTextNode('ויקימילון'));
li1.appendChild(a1);
ul.appendChild(li1);
var li2 = document.createElement('LI');
var a2 = document.createElement('<a href="' + wikqlink + '">');
a2.appendChild(document.createTextNode('ויקיציטוט'));
li2.appendChild(a2);
ul.appendChild(li2);
var li3 = document.createElement('LI');
var a3 = document.createElement('<a href="' + wikblink + '">');
a3.appendChild(document.createTextNode('ויקיספר'));
li3.appendChild(a3);
ul.appendChild(li3);
var li4 = document.createElement('LI');
var a4 = document.createElement('<a href="' + wikslink + '">');
a4.appendChild(document.createTextNode('ויקיטקסט'));
li4.appendChild(a4);
ul.appendChild(li4);
div2.appendChild(ul);
div1.appendChild(div2);
psearch.appendChild(div1);
}
addLoadEvent(OthPro);
/* פונקציה שמספקת תקציר עריכה אוטומטי כשעורכים גרסה ישנה. התקציר האוטומטי הוא "שחזור לגרסה 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);
}
}
addOnloadHook(oldVersEdit);
// פונקציה להוספת רשימת אזהרות כשעורכים דף שיחה של אנונימי
function talkIPTool()
{
var title = (document.title.substr(0, document.title.lastIndexOf(" - ")));
templatesList=document.getElementById('edit-templates');
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);
addOnloadHook(function () {
addLink('p-personal', "/w/index.php?title=%D7%9E%D7%99%D7%95%D7%97%D7%93:Prefixindex&from=" + wgUserName + "&namespace=3", '(שיחה)', 'pt-talksubpage', 'עבור לרשימת דפי משנה של דף שיחת המשתמש', '', '');
addLink('p-personal', "/w/index.php?title=%D7%9E%D7%99%D7%95%D7%97%D7%93:Prefixindex&from=" + wgUserName + "&namespace=2", 'דפי משנה', 'pt-subpage', 'עבור לרשימת דפי משנה של דף המשתמש', '', '');
addLink('p-personal', "http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user=" + wgUserName + "&dbname=hewiki_p", 'מונה', 'pt-thiscont', 'עבור לרשימת התרומות של משתמש זה', '', '');
addLink('p-personal', "http://tools.wikimedia.de/~dapete/catgraph/", 'עץ קטגוריות', 'pt-thiscont', 'עבור לכלי עץ הקטגוריות', '', '');
});
/* הוספת כפתור לסינון תיקונים לדפי פרושונים */
function revFilterBut(){
if (wgPageName=='מיוחד:Recentchanges' && document.getElementById('nsselect')!=null){
document.getElementById('nsselect').innerHTML += ' | <a href=\"#\" onclick=\"revFilter();\">הסתר תיקונים</a>';
}
}
function revFilter(){
//הפעל את הסקריפט רק בדף השינויים האחרונים
if (wgPageName=='מיוחד:Recentchanges'){
// עבור על כל פריטי רשימת השינויים האחרונים
for(var i=0;RCLi = document.getElementsByTagName("li")[i];i++){
for(var j=0;SpansRCLi = RCLi.getElementsByTagName("span")[j];j++){
var revE=0;
editcomm=SpansRCLi.innerHTML;
if (editcomm.indexOf('תיקון קישור לדף פירושונים')!=-1 || editcomm.indexOf('ביטול קישור כפול לדף פירושונים')!=-1) revE=1;
if (SpansRCLi.className == "comment" && revE==1) RCLi.style.display='none';
}
}
}
}
addOnloadHook(revFilterBut);
/* פונקציה להוספת סרגל אותיות. נכתב ע"י [[משתמש:ערן]] ו[[משתמש:Effib]] */
function AlNevig()
{
psearch = document.getElementById('p-search');
if (!psearch) return;
var link = "http://he.wikipedia.org/wiki/מיוחד:Allpages/";
var div1 = document.createElement('<div id="p-search1" class="portlet">');
var h5 = document.createElement('H5');
var label = document.createElement('<label for="lettersHe">');
label.appendChild(document.createTextNode('ניווט אלפביתי'));
h5.appendChild(label);
div1.appendChild(h5);
var div2 = document.createElement('<div id="lettersHe" class="pBody">');
var a1 = document.createElement('<a href="' + link + 'א" alt="א">');a1.appendChild(document.createTextNode('א'));div2.appendChild(a1);
div2.appendChild(document.createTextNode(' | '));
var a2 = document.createElement('<a href="' + link + 'ב" alt="ב">');a2.appendChild(document.createTextNode('ב'));div2.appendChild(a2);
div2.appendChild(document.createTextNode(' | '));
var a3 = document.createElement('<a href="' + link + 'ג" alt="ג">');a3.appendChild(document.createTextNode('ג'));div2.appendChild(a3);
div2.appendChild(document.createTextNode(' | '));
var a4 = document.createElement('<a href="' + link + 'ד" alt="ד">');a4.appendChild(document.createTextNode('ד'));div2.appendChild(a4);
div2.appendChild(document.createTextNode(' | '));
var a5 = document.createElement('<a href="' + link + 'ה" alt="ה">');a5.appendChild(document.createTextNode('ה'));div2.appendChild(a5);
div2.appendChild(document.createTextNode(' | '));
var a6 = document.createElement('<a href="' + link + 'ו" alt="ו">');a6.appendChild(document.createTextNode('ו'));div2.appendChild(a6);
div2.appendChild(document.createTextNode(' | '));
var a7 = document.createElement('<a href="' + link + 'ז" alt="ז">');a7.appendChild(document.createTextNode('ז'));div2.appendChild(a7);
div2.appendChild(document.createTextNode(' | '));
var a8 = document.createElement('<a href="' + link + 'ח" alt="ח">');a8.appendChild(document.createTextNode('ח'));div2.appendChild(a8);
div2.appendChild(document.createTextNode(' | '));
var a9 = document.createElement('<a href="' + link + 'ט" alt="ט">');a9.appendChild(document.createTextNode('ט'));div2.appendChild(a9);
div2.appendChild(document.createTextNode(' | '));
var a10 = document.createElement('<a href="' + link + 'י" alt="י">');a10.appendChild(document.createTextNode('י'));div2.appendChild(a10);
div2.appendChild(document.createTextNode(' | '));
var a11 = document.createElement('<a href="' + link + 'כ" alt="כ">');a11.appendChild(document.createTextNode('כ'));div2.appendChild(a11);
div2.appendChild(document.createTextNode(' | '));
var a12 = document.createElement('<a href="' + link + 'ל" alt="ל">');a12.appendChild(document.createTextNode('ל'));div2.appendChild(a12);
div2.appendChild(document.createTextNode(' | '));
var a13 = document.createElement('<a href="' + link + 'מ" alt="מ">');a13.appendChild(document.createTextNode('מ'));div2.appendChild(a13);
div2.appendChild(document.createTextNode(' | '));
var a14 = document.createElement('<a href="' + link + 'נ" alt="נ">');a14.appendChild(document.createTextNode('נ'));div2.appendChild(a14);
div2.appendChild(document.createTextNode(' | '));
var a15 = document.createElement('<a href="' + link + 'ס" alt="ס">');a15.appendChild(document.createTextNode('ס'));div2.appendChild(a15);
div2.appendChild(document.createTextNode(' | '));
var a16 = document.createElement('<a href="' + link + 'ע" alt="ע">');a16.appendChild(document.createTextNode('ע'));div2.appendChild(a16);
div2.appendChild(document.createTextNode(' | '));
var a17 = document.createElement('<a href="' + link + 'פ" alt="פ">');a17.appendChild(document.createTextNode('פ'));div2.appendChild(a17);
div2.appendChild(document.createTextNode(' | '));
var a18 = document.createElement('<a href="' + link + 'צ" alt="צ">');a18.appendChild(document.createTextNode('צ'));div2.appendChild(a18);
div2.appendChild(document.createTextNode(' | '));
var a19 = document.createElement('<a href="' + link + 'ק" alt="ק">');a19.appendChild(document.createTextNode('ק'));div2.appendChild(a19);
div2.appendChild(document.createTextNode(' | '));
var a20 = document.createElement('<a href="' + link + 'ר" alt="ר">');a20.appendChild(document.createTextNode('ר'));div2.appendChild(a20);
div2.appendChild(document.createTextNode(' | '));
var a21 = document.createElement('<a href="' + link + 'ש" alt="ש">');a21.appendChild(document.createTextNode('ש'));div2.appendChild(a21);
div2.appendChild(document.createTextNode(' | '));
var a22 = document.createElement('<a href="' + link + 'ת" alt="ת">');a22.appendChild(document.createTextNode('ת'));div2.appendChild(a22);
div1.appendChild(div2);
psearch.appendChild(div1);
}
addLoadEvent(AlNevig);
/* פופ אפ */
// [[User:Lupin/popups.js]] - please include this line
// תורגם ע"י אביחי
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Avichai/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/* Add links to diff pages */
/* Created by [[User:Yonidebest]]; Works in IE only; */
// String constants
wrn_text = "אזהרה";
wrn_tooltip = "הוסף תבנית אזהרה";
try_text = "ניסויים";
try_tooltip = "הוסף תבנית ניסויים";
cpy_text = "פרסומת";
cpy_tooltip = "הוסף תבנית פרסומת";
del_text = "בוטל";
del_tooltip = "הוסף תבנית בוטל";
tnx_text = "תודה";
tnx_tooltip = "הוסף תבנית תודה";
function openNewWindow(userName, previousTitle, template_name) {
var url = 'http://he.wikipedia.org/w/index.php?title=' + encodeURIComponent('שיחת_משתמש:') + userName + '&action=edit&template_name=' + template_name + '&title_name=' + previousTitle;
// var win = window.open(url, '_blank'); // חלון חדש
document.location = url; // באותו חלון
}
// Add template to talk page
function addTemplate(template, title) {
var txt = '\n==[[:' + decodeURIComponent(title).replace(/_/g, ' ') + ']]==\n';
var comment = '';
if (template == 'wrn') { // אזהרה
template = 'אזהרה';
comment = 'אזהרה';
}
if (template == 'try') { // ניסויים
template = 'ניסויים';
comment = 'ניסויים';
}
if (template == 'tnx') { // תודה
template = 'תודה';
comment = 'תודה';
}
if (template == 'cpy') { // פרסומת
template = 'פרסומת';
comment = 'פרסומת';
}
if (template == 'del') { // בוטל
template = 'בוטל';
comment = 'בוטל';
}
txt += '{{' + template + '}} ';
document.editform.wpTextbox1.value += txt + '~~' + '~~\n';
document.editform.wpSummary.value = comment;
document.editform.wpSave.click();
}
function templateSC_onload() {
if (document.location.href.indexOf('diff') != -1) {
var as = document.getElementById('bodyContent').getElementsByTagName('a');
var titleName = wgPageName;
var userName;
var rx = new RegExp('[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}');
for (var i=0; i < as.length; i++) {
/* עבור משמשים אנונימיים */
var m = rx.test(as[i].title);
if (as[i].title.indexOf("מיוחד:Contributions") == 0 && m) {
userName = encodeURIComponent(as[i].title.substring(as[i].title.lastIndexOf("Contributions") + 14, as[i].title.length));
/* tnx */
var txt1 = document.createTextNode(')');
var txt2 = document.createTextNode(' | ');
var a_tnx = document.createElement('a');
a_tnx.href = 'javascript:openNewWindow(\'' + userName + '\', \'' + titleName + '\', \'' + 'tnx' + '\')';
a_tnx.appendChild(document.createTextNode(tnx_text));
a_tnx.title = tnx_tooltip;
as[i].parentNode.insertBefore(txt1, as[i].nextSibling);
as[i].parentNode.insertBefore(a_tnx, as[i].nextSibling);
as[i].parentNode.insertBefore(txt2, as[i].nextSibling);
/* cpy */
var txt3 = document.createTextNode(' | ');
var a_cpy = document.createElement('a');
a_cpy.href = 'javascript:openNewWindow(\'' + userName + '\', \'' + titleName + '\', \'' + 'cpy' + '\')';
a_cpy.appendChild(document.createTextNode(cpy_text));
a_cpy.title = cpy_tooltip;
as[i].parentNode.insertBefore(a_cpy, as[i].nextSibling);
as[i].parentNode.insertBefore(txt3, as[i].nextSibling);
/* del */
var txt4 = document.createTextNode(' | ');
var a_del = document.createElement('a');
a_del.href = 'javascript:openNewWindow(\'' + userName + '\', \'' + titleName + '\', \'' + 'del' + '\')';
a_del.appendChild(document.createTextNode(del_text));
a_del.title = del_tooltip;
as[i].parentNode.insertBefore(a_del, as[i].nextSibling);
as[i].parentNode.insertBefore(txt4, as[i].nextSibling);
/* try */
var txt5 = document.createTextNode(' | ');
var a_try = document.createElement('a');
a_try.href = 'javascript:openNewWindow(\'' + userName + '\', \'' + titleName + '\', \'' + 'try' + '\')';
a_try.appendChild(document.createTextNode(try_text));
a_try.title = try_tooltip;
as[i].parentNode.insertBefore(a_try, as[i].nextSibling);
as[i].parentNode.insertBefore(txt5, as[i].nextSibling);
/* wrn */
var txt6 = document.createTextNode(' (');
var a_wrn = document.createElement('a');
a_wrn.href = 'javascript:openNewWindow(\'' + userName + '\', \'' + titleName + '\', \'' + 'wrn' + '\')';
a_wrn.appendChild(document.createTextNode(wrn_text));
a_wrn.title = wrn_tooltip;
as[i].parentNode.insertBefore(a_wrn, as[i].nextSibling);
as[i].parentNode.insertBefore(txt6, as[i].nextSibling);
}
}
}
var template_name = getParamValue('template_name'); // Fetch what template to add
var title_name = getParamValue('title_name');
if (template_name == 'wrn'){
addTemplate('wrn', title_name);
}
if (template_name == 'try'){
addTemplate('try', title_name);
}
if (template_name == 'tnx'){
addTemplate('tnx', title_name);
}
if (template_name == 'cpy'){
addTemplate('cpy', title_name);
}
if (template_name == 'del'){
addTemplate('del', title_name);
}
}
addOnloadHook(templateSC_onload);
//
// סקריפט 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§ion=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 + '§ion=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 = "/* עריכת ההקדמה */ ";
}
addOnloadHook(addEditSection0);
// עד כאן סקריפט 12
//
// סקריפט 13: לקוח מ[[ויקיפדיה:סקריפטים/13]]
// קוד הבודק האם למשתמש יש זכות הצבעה. הקוד אינו בודק ותק אלא רק בהקשר לתרומות: 100 תרומות בתוך 90 יום.
// נכתב על ידי [[משתמש:yonidebest]]
//
function voteNotice(notice, hasVote) {
var el = document.createElement('DIV');
if (hasVote)
el.style.border = "2px solid green";
else
el.style.border = "2px solid red";
el.style.margin = '1em 3em 1em 3em';
el.style.padding = '7px';
el.style.textAlign = 'center';
el.appendChild(document.createTextNode(notice));
var fieldset = document.getElementById('bodyContent').getElementsByTagName('fieldset');
fieldset[0].parentNode.insertBefore(el, fieldset[0].nextSibling);
}
function voteStatus() {
if (getParamValue("checkvote") == "yes") {
// check if user has 100 edits
if (document.getElementById('bodyContent').innerHTML.indexOf('>100 הקודמות<') == -1) { // not enough edits
voteNotice('למשתמש זה אין 100 עריכות ולכן אין לו זכות הצבעה :-(', false);
return;
}
// get date of last edit and check 90 days rule
var li = document.getElementById('bodyContent').getElementsByTagName('ul')[0].getElementsByTagName('li');
var rawDate = li[li.length - 1].innerHTML.substring(7, li[li.length - 1].innerHTML.indexOf('(') - 1);
var date = rawDate.split(' ');
var month = {
'בינואר': '0',
'בפברואר': '1',
'במרץ': '2',
'באפריל': '3',
'במאי': '4',
'ביוני': '5',
'ביולי': '6',
'באוגוסט': '7',
'בספטמבר': '8',
'באוקטובר': '9',
'בנובמבר': '10',
'בדצמבר': '11'
}
var now = new Date();
var d = new Date();
d.setDate(date[0]);
d.setMonth(month[ date[1] ]);
d.setFullYear(date[2]);
if (now.getTime() - d.getTime() > 7776000000) { // not 90 days
voteNotice('משתמש זה אמנם צבר 100 עריכות אך לא בתוך 90 יום ולכן אין לו זכות הצבעה :-(', false);
return;
}
// user passed all the tests!
voteNotice('למשתמש זה יש זכות הצבעה :-)', true);
} else if (wgNamespaceNumber == 2 || wgNamespaceNumber == 3) {
addLink('p-tb', "/w/index.php?title=%D7%9E%D7%99%D7%95%D7%97%D7%93:Contributions&limit=100&contribs=user&namespace=0&checkvote=yes&target=" + wgTitle, 'זכות הצבעה', 't-uservote', 'הצג רשימת התרומות של משתמש זה', '', document.getElementById('t-blockip') ? 't-blockip' : 't-emailuser');
}
}
addOnloadHook(voteStatus);
// עד כאן סקריפט 13
//
// סקריפט 14: נלקח מ[[ויקיפדיה:סקריפטים/14|כאן]]
// מאפשר לבצע חיפוש תוך שימוש בשמות מרחב מקוצרים מוגדרים מראש. את הרשימה ניתן למצוא [[שיחת ויקיפדיה:סקריפטים/14|כאן]]
// נכתב על ידי [[user:Yonidebest]]
//
function checkSearchInput() {
var shortcuts = new Array(18)
for (var i = 0; i < shortcuts.length; i++)
shortcuts[i] = new Array(2);
shortcuts[0][0] = 'ש:';
shortcuts[0][1] = 'שיחה:';
shortcuts[1][0] = 'ו:';
shortcuts[1][1] = 'ויקיפדיה:';
shortcuts[2][0] = 'שו:';
shortcuts[2][1] = 'שיחת ויקיפדיה:';
shortcuts[3][0] = 'ק:';
shortcuts[3][1] = 'קטגוריה:';
shortcuts[4][0] = 'שק:';
shortcuts[4][1] = 'שיחת קטגוריה:';
shortcuts[5][0] = 'ע:';
shortcuts[5][1] = 'עזרה:';
shortcuts[6][0] = 'שע:';
shortcuts[6][1] = 'שיחת עזרה:';
shortcuts[7][0] = 'מ:';
shortcuts[7][1] = 'משתמש:';
shortcuts[8][0] = 'שמ:';
shortcuts[8][1] = 'שיחת משתמש:';
shortcuts[9][0] = 'פ:';
shortcuts[9][1] = 'פורטל:';
shortcuts[10][0] = 'שפ:';
shortcuts[10][1] = 'שיחת פורטל:';
shortcuts[11][0] = 'מו:';
shortcuts[11][1] = 'מדיה ויקי:';
shortcuts[12][0] = 'שמו:';
shortcuts[12][1] = 'שיחת מדיה ויקי:';
shortcuts[13][0] = 'ת:';
shortcuts[13][1] = 'תמונה:';
shortcuts[14][0] = 'שת:';
shortcuts[14][1] = 'שיחת תמונה:';
shortcuts[15][0] = 'תב:';
shortcuts[15][1] = 'תבנית:';
shortcuts[16][0] = 'שתב:';
shortcuts[16][1] = 'שיחת תבנית:';
shortcuts[17][0] = 'תמ:';
shortcuts[17][1] = 'מיוחד:Contributions/';
text = document.getElementById('searchInput');
for (i = 0; i < shortcuts.length; i++) {
var rxEdit = new RegExp('^ע' + shortcuts[i][0]);
if (rxEdit.test(text.value)) {
text.value = text.value.replace(rxEdit, shortcuts[i][1]);
document.location = 'http://he.wikipedia.org/w/index.php?title=' + text.value + '&action=edit';
return false;
}
var rxHistory = new RegExp('^ג' + shortcuts[i][0]);
if (rxHistory.test(text.value)) {
text.value = text.value.replace(rxHistory, shortcuts[i][1]);
document.location = 'http://he.wikipedia.org/w/index.php?title=' + text.value + '&action=history';
return false;
}
}
for (i = 0; i < shortcuts.length; i++) {
var rx = new RegExp('^' + shortcuts[i][0]);
text.value = text.value.replace(rx, shortcuts[i][1]);
}
return true;
}
function addCheckSearchInput() {
var form = document.getElementById('searchform');
if (!form) return;
form.onsubmit = function(){return checkSearchInput();}
}
addOnloadHook(addCheckSearchInput);
// עד כאן סקריפט 14
// script written by [[User:Yonidebest]]
function wikiCalc() {
var psearch = document.getElementById('p-search');
if (!psearch) return;
var div1 = document.createElement('<div id="p-search1" class="portlet">');
var h5 = document.createElement('H5');
var label = document.createElement('<label for="calcInput">');
label.appendChild(document.createTextNode('קיצורון'));
h5.appendChild(label);
div1.appendChild(h5);
var div2 = document.createElement('<div id="wikiCalc" class="pBody">');
var form1 = document.createElement('<form name="createbox" action="/w/index.php" method="get" class="createbox" id="createbox">');
var p1 = document.createElement('P');
var input1 = document.createElement('<input type="hidden" name="action" value="edit" />');
p1.appendChild(input1);
var input2 = document.createElement('<input type="hidden" name="preload" value="משתמש:דניאל ב./מחשבון ויקי/2" />');
p1.appendChild(input2);
var input3 = document.createElement('<input type="hidden" name="editintro" value="משתמש:דניאל ב./קיצורים/1" />');
p1.appendChild(input3);
form1.appendChild(p1);
var p2 = document.createElement('P');
var input4 = document.createElement('<input id="calcInput" class="createboxInput" name="title" type="text" value="" size="16" />');
p2.appendChild(input4);
p2.appendChild(document.createElement('BR'));
var input5 = document.createElement('<input type="submit" name="create" class="createboxButton" value="שאלה" />');
p2.appendChild(input5);
form1.appendChild(p2);
div2.appendChild(form1);
div1.appendChild(div2);
psearch.appendChild(div1);
}
//
// סקריפט 15: מתוך [[ויקיפדיה:סקריפטים/15]]
// מוסיף קישור "הסר" תחת הכותרת "קישורי תמונות" בדפי תמונה. לחיצה על הקישור תסיף את התמונה מהערך. עובד ב-IE בלבד.
// created by [[user:Yonidebest]]
//
function addRemoveImageLinks() {
// add the link to image pages
if (wgNamespaceNumber == 6) {
var ul = document.getElementById('filelinks').nextSibling.nextSibling;
if (!ul) return;
var lis = ul.getElementsByTagName('LI');
for (var i = 0; i < lis.length; i++) {
link = document.createElement('A');
link.href = '/w/index.php?title=' + lis[i].childNodes[0].title + '&action=edit&removeimage=yes&name=' + encodeURIComponent(wgTitle);
link.appendChild(document.createTextNode('הסר'));
lis[i].appendChild(document.createTextNode(' ('));
lis[i].appendChild(link);
lis[i].appendChild(document.createTextNode(')'));
}
}
// remove image and save
if (getParamValue('removeimage') == 'yes') {
var imageName = decodeURIComponent(getParamValue('name'));
if (imageName) {
var rx = new RegExp('\\[\\[\\s?:?(תמונה|image)\\s?:\\s?(' + imageName + '|' + imageName.replace(' ', '_') + ')([^\\[]|\\[\\[[^\\]]*\\]\\])*\\]\\]', 'ig');
document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace(rx, '');
document.editform.wpSummary.value = 'הסרת [[תמונה:' + imageName + ']]';
document.editform.wpSave.click();
}
}
}
addOnloadHook(addRemoveImageLinks);
// עד כאן סקריפט 15
//
// סקריפט 16: נלקח מ[[ויקיפדיה:סקריפטים/16]]
// הקוד בודק אחוזי תמיכה בהצבעות. יש לסמן לפחות 2 תיבות סימון ואז לחיצה על תיבת סימון כלשהי תבדוק את אחוז התמיכה של שתי הרשימות.
// נכתב על ידי [[משתמש:Yonidebest]]
//
function checkVotingStatus() {
var inputs = document.getElementById('bodyContent').getElementsByTagName('INPUT');
var ols = document.getElementById('bodyContent').getElementsByTagName('OL');
var firstCatch = true;
var firstOL;
var secondOL;
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].getAttribute('name') != 'VoteOption' || !inputs[i].checked) continue;
if (firstCatch) {
firstOL = ols[Number(inputs[i].getAttribute('value'))];
firstCatch = false;
} else {
secondOL = ols[Number(inputs[i].getAttribute('value'))];
break;
}
}
if (firstOL && secondOL) {
var li1Length = firstOL.getElementsByTagName('LI').length;
var li2Length = secondOL.getElementsByTagName('LI').length;
var result1 = ( (li1Length / (li1Length + li2Length))*100 ).toFixed(2);
var result2 = ( (li2Length / (li1Length + li2Length))*100 ).toFixed(2);
alert('אחוז תמיכה רשימה ראשונה: ' + result1 + '%\nאחוז תמיכה רשימה שנייה: ' + + result2 + '%');
} else alert('הייתה בעיה. האם סימנת שתי תיבות סימון?');
}
function addCheckVotingStatus() {
if (wgPageName.indexOf('ויקיפדיה:פרלמנט') != 0 &&
wgPageName.indexOf('ויקיפדיה:רשימת_מועמדים_למחיקה/') != 0 &&
wgPageName.indexOf('ויקיפדיה:רשימת_ערכים_במחלוקת/') != 0) return;
var ols = document.getElementById('bodyContent').getElementsByTagName('OL');
if (!ols) return;
for (var i = 0; i < ols.length; i++) {
var checkbox = document.createElement('INPUT');
checkbox.type = "checkbox";
checkbox.name = "VoteOption";
checkbox.value = i;
checkbox.oncontextmenu = function(){checkVotingStatus();return false;}
ols[i].parentNode.insertBefore(checkbox, ols[i]);
ols[i].parentNode.insertBefore(document.createTextNode('השווה רשימה זו'), ols[i]);
ols[i].parentNode.insertBefore(document.createElement('BR'), ols[i]);
}
}
addOnloadHook(addCheckVotingStatus);
// עד כאן סקריפט 16
/* אימות - האם באמת התכוונת לצאת מהחשבון? */
function confirmLogout(e)
{
e = (e) ? e : event;
if (!confirm("Are you sure you want to log out?"))
{
if (document.all)
{
e.returnValue = false;
}
else
{
e.preventDefault();
}
}
}
function initConfirmLogout(e)
{
e = (e) ? e : event;
if (document.all)
{
document.getElementById("pt-logout").firstChild.attachEvent("onclick", confirmLogout);
}
else
{
document.getElementById("pt-logout").firstChild.addEventListener("click", confirmLogout, true);
}
}
//
// סקריפט 19: מתוך [[ויקיפדיה:סקריפטים/19]]
// הסקריפט מוסיף אפשרות ל"חיפוש מתקדם", בנוסף לתיבת החיפוש הרגילה. החיפוש המתקדם למעשה כולל את האפשר לבחור באלו מרחבים יבוצע החיפוש.
// created by [[user:Yonidebest]]
//
function navSearchToggle() {
var divBody = document.getElementById('p-searchBody1');
if (divBody.style.display == 'none') // show content
divBody.style.display = 'block';
else { // hide content
divBody.style.display = 'none';
}
}
function moreSearchOptions() {
var navSearchMain = document.createElement('DIV');
navSearchMain.className = 'portlet';
var h5SearchTitle = document.createElement('H5');
var aLink1 = document.createElement('A');
aLink1.appendChild(document.createTextNode('חיפוש מתקדם'));
aLink1.href = 'javascript:navSearchToggle();';
h5SearchTitle.appendChild(aLink1);
navSearchMain.appendChild(h5SearchTitle);
try { // for IE
var divSearchBody = document.createElement('<DIV ID="p-searchBody1"></DIV>');
} catch (e) { // for FF
var divSearchBody = document.createElement('DIV');
divSearchBody.id = 'p-searchBody1';
};
divSearchBody.className = 'pBody';
divSearchBody.style.padding = '5px';
divSearchBody.innerHTML = '<form id="powersearch" method="get" action="/wiki/%D7%9E%D7%99%D7%95%D7%97%D7%93:Search"><div style="text-align: center;"><input type="text" name="search" value="" size="16" /><br /><input type="submit" name="fulltext" value="חפש" /></div><br /><label><input type="checkbox" value="1" name="ns0" checked="checked" />(ראשי)</label><br /><label><input type="checkbox" value="1" name="ns1" />שיחה</label><br /><label><input type="checkbox" value="1" name="ns2" />משתמש</label><br /><label><input type="checkbox" value="1" name="ns3" />שיחת משתמש</label><br /><label><input type="checkbox" value="1" name="ns4" />ויקיפדיה</label><br /><label><input type="checkbox" value="1" name="ns5" />שיחת ויקיפדיה</label><br /><label><input type="checkbox" value="1" name="ns6" />תמונה</label><br /><label><input type="checkbox" value="1" name="ns7" />שיחת תמונה</label><br /><label><input type="checkbox" value="1" name="ns8" />מדיה ויקי</label><br /><label><input type="checkbox" value="1" name="ns9" />שיחת מדיה ויקי</label><br /><label><input type="checkbox" value="1" name="ns10" checked="checked" />תבנית</label><br /><label><input type="checkbox" value="1" name="ns11" />שיחת תבנית</label><br /><label><input type="checkbox" value="1" name="ns12" />עזרה</label><br /><label><input type="checkbox" value="1" name="ns13" />שיחת עזרה</label><br /><label><input type="checkbox" value="1" name="ns14" checked="checked" />קטגוריה</label><br /><label><input type="checkbox" value="1" name="ns15" />שיחת קטגוריה</label><br /><label><input type="checkbox" value="1" name="ns100" checked="checked" />פורטל</label><br /><label><input type="checkbox" value="1" name="ns101" />שיחת פורטל</label></form>';
navSearchMain.appendChild(divSearchBody);
var pSearch = document.getElementById('p-search');
pSearch.parentNode.insertBefore(navSearchMain, pSearch);
navSearchToggle();
}
addOnloadHook(moreSearchOptions);
// עד כאן סקריפט 19
//
// סקריפט 20: לקוח מ[[ויקיפדיה:סקריפטים/20]]
// בודק את מספר הבתים שנוספו או הוסרו בדף גרסאות קודמות ומוסיף את המידע הרלוונטי אחרי תצוגת גודל הדף בבתים. הצבעים הותאמו לצבעים בעלי אותה משמעות בדף השינויים האחרונים.
// נכתב על ידי [[משתמש:yonidebest]]
//
function getHistorySizeSpan(li) {
var spans = li.getElementsByTagName('SPAN');
for (var i = 0; i < spans.length; i++)
if (spans[i].className == 'history-size')
return spans[i];
return null;
}
function getSize(li) {
var rx = new RegExp('\\((.*) בתים\\)');
var historySpan = getHistorySizeSpan(li);
if (historySpan == null) return null;
var m = rx.exec(historySpan.innerHTML);
if (m) return parseInt(m[1].replace(/,/g, ''));
if (historySpan.innerHTML.indexOf("ריק") != -1) return 0;
return null;
}
function addSizes() {
if (wgAction != 'history') return;
var lis = document.getElementById('pagehistory').getElementsByTagName('LI');
for (var i = 0; i < lis.length; i++) {
if (lis[i + 1] == null) break;
var currnetSize = getSize(lis[i]);
if (currnetSize == null) continue;
var lastSize = getSize(lis[i + 1]);
var index = 1;
while (!lastSize) {
index++;
lastSize = getSize(lis[i + index]);
}
if (lastSize == null) break;
var sizeChange = currnetSize - lastSize;
var historySpan = getHistorySizeSpan(lis[i]);
if (historySpan == null) break;
if (sizeChange > 0)
historySpan.innerHTML += ' <font color="#006400">(+' + sizeChange + ')</font>';
else if (sizeChange == 0) historySpan.innerHTML += ' <font color="#999999">(' + sizeChange + ')</font>';
else historySpan.innerHTML += ' <font color="#8B0000">(' + sizeChange + ')</font>';
}
}
addOnloadHook(addSizes);
// עד כאן סקריפט 20
// Adds a replace option to toolbar in edit mode
// Works in IE6
// Created by [[user:Yonidebest]]
function replaceText() {
var fromThisRx = new RegExp(document.getElementById('fromReplace').value, 'g');
var toThis = document.getElementById('toReplace').value;
var tempText = document.editform.wpTextbox1.value.replace(fromThisRx, toThis);
var statusReplace = document.getElementById('statusReplace');
if (tempText != document.editform.wpTextbox1.value) {
document.editform.wpTextbox1.value = tempText;
statusReplace.innerHTML = 'בוצע!';
} else statusReplace.innerHTML = 'לא נמצאו מופעים.';
}
function toggleReplaceText() {
var divBox = document.getElementById('divReplace');
var aReplace = document.getElementById('aReplace');
if (divBox.style.display == 'none') {
divBox.style.display = 'block';
aReplace.innerHTML = '[הסתר]';
} else {
divBox.style.display = 'none';
aReplace.innerHTML = 'בצע החלפה';
}
}
function addReplaceText() {
var toolbar = document.getElementById('toolbar');
if (!toolbar) return;
var fromReplace = document.createElement('<INPUT ID="fromReplace"></INPUT>');
fromReplace.type = 'text';
fromReplace.onchange = function() {javascript:document.getElementById("statusReplace").innerHTML = "מחכה...";};
var toReplace = document.createElement('<INPUT ID="toReplace"></INPUT>');
toReplace.type = 'text';
toReplace.onchange = function() {javascript:document.getElementById("statusReplace").innerHTML = "מחכה...";};
var submitReplace = document.createElement('A');
submitReplace.href = 'javascript:replaceText();';
submitReplace.appendChild(document.createTextNode('החלף'));
var statusRaplce = document.createElement('<SPAN ID="statusReplace"></SPAN>');
statusRaplce.appendChild(document.createTextNode('מחכה...'));
var divBox = document.createElement('<DIV ID="divReplace"></DIV>');
divBox.appendChild(document.createTextNode('החלף את '));
divBox.appendChild(fromReplace);
divBox.appendChild(document.createTextNode(' ב '));
divBox.appendChild(toReplace);
divBox.appendChild(document.createTextNode(' '));
divBox.appendChild(submitReplace);
divBox.appendChild(document.createTextNode(' | סטטוס: '));
divBox.appendChild(statusRaplce);
divBox.appendChild(document.createElement('BR'));
var aReplace = document.createElement('<A ID="aReplace"></A>');
aReplace.href = 'javascript:toggleReplaceText();';
aReplace.appendChild(document.createTextNode('בצע החלפה'));
toolbar.appendChild(aReplace);
toolbar.appendChild(document.createTextNode(' '));
toolbar.appendChild(divBox);
toggleReplaceText();
}
addOnloadHook(addReplaceText);
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>');
importUserScript(25);
function FACarch(){
divFAC=document.getElementById('FACarchive');
if(divFAC!=null){
divFAC.innerHTML+='<a href=\"http://he.wikipedia.org/w/index.php?title=' + wgPageName + '/הצעת_הוספה_למומלצים&action=edit&FAarhcive=yes\">לארכב!</a>';
}
if(location.href.indexOf("action=edit&FAarhcive=yes") > -1) document.editform.wpTextbox1.value+='הועבר מ[[ויקיפדיה:ערכים מומלצים/הוספה למומלצים]] ~~' + '~~'+'~';
}
addLoadEvent(FACarch);
//Made by Eran
/* הוספת כפתור שמבצע החלפות שונות ומתריע על בעיות סגנון שונות סקריפט שנלקח מ[[משתמש:ערן|ערן]] ונערך קצת על ידי ניר */
function CheckTy()
{
txt = document.editform.wpTextbox1.value;
txt = txt.replace(/\ גיאומטריה/g, " גאומטריה");
txt = txt.replace(/\ דארווין /g, " דרווין ");
txt = txt.replace(/\ יעוץ/g, " ייעוץ");
txt = txt.replace(/\ סינטטי/g, " סינתטי");
txt = txt.replace(/\ פלשתינאים/g, " פלסטינים");
txt = txt.replace(/\ תיאולוגיה/g, " תאולוגיה");
txt = txt.replace(/\ היתה/g, " הייתה");
txt = txt.replace(/\REDIRECT/g, "הפניה");
txt = txt.replace(/\איזור/g, "אזור");
txt = txt.replace(/\אירגון/g, "ארגון");
txt = txt.replace(/\גיאוגרפיה/g, "גאוגרפיה");
txt = txt.replace(/\גיאולוגיה/g, "גאולוגיה");
txt = txt.replace(/\דוגמא /g, "דוגמה ");
txt = txt.replace(/\ ישוב /g, " יישוב ");
txt = txt.replace(/\כנסיה/g, "כנסייה");
txt = txt.replace(/\מוסיקה/g, "מוזיקה");
txt = txt.replace(/\פיסיולוגיה/g, "פיזיולוגיה");
txt = txt.replace(/\פיסיקה/g, "פיזיקה");
txt = txt.replace(/\צלסיוס/g, "צלזיוס");
txt = txt.replace(/\ שניה /g, " שנייה ");
txt = txt.replace(/\תיאוריה/g, "תאוריה");
txt = txt.replace(/\[Category:/gi, "[קטגוריה:");
txt = txt.replace(/\[Image:/gi, "[תמונה:");
txt = txt.replace(/\|thumb\|/gi, "|ממוזער|");
txt = txt.replace(/\|right\|/gi, "|ימין|");
txt = txt.replace(/\|left\|/gi, "|שמאל|");
txt = txt.replace(/\Image:/gi, "תמונה:");
txt = txt.replace(/ראה גם/g, "ראו גם");
txt = txt.replace(/\במידה ו/g, "במידה ש");
txt = txt.replace(/עויין/g, "עוין");
txt = txt.replace(/מצויין/g, "מצוין");
txt = txt.replace(/(ב-|ב )([1-9])?([1-9])( ל)(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/g, "ב-$2$3 ב$5");
txt = txt.replace(/\t/g, " ");
txt = txt.replace(/(\n\n)\n+/g, "$1");
txt = txt.replace(/== ? ?\n\n==/g, "==\n==");
txt = txt.replace(/^ ? ? \n/gm, "\n");
txt = txt.replace(/[ \t][ \t]+/g, " ");
txt = txt.replace(/\ /g, " ");
document.editform.wpTextbox1.value = txt;
comstr="";
if(txt.indexOf("בגלל ש",0)!=-1) comstr=comstr+"\nיתכן שבערך מופיע הצירוף בגלל ש. אם מופיע מומלץ להחליפו בכיוון ש, משום ש, מאחר ש או מפני ש (מידע נוסף ב ויקיפדיה:לשון)";
if(txt.indexOf("שוב פעם",0)!=-1) comstr=comstr+"\nיתכן שבערך מופיע הצירוף שוב פעם. אם מופיע מומלץ להחליפו עוד פעם או שוב (מידע נוסף ב ויקיפדיה:לשון)";
if(txt.indexOf("עובדה מעניינת",0)!=-1 || txt.indexOf("ראוי לציין",0)!=-1 || txt.indexOf("יש לציין",0)!=-1 || txt.indexOf("צריך להדגיש",0)!=-1){
comstr=comstr+"\nאל תעיד אל עיסתך! מומלץ להימנע מהביטוים עובדה מעניינת היא או צריך להדגיש או יש לציין. יש לתת לקורא להחליט אם העובדה ראויה לציון. (מידע נוסף ב ויקיפדיה:לשון)";
}
if(txt.indexOf("למרות ש",0)!=-1) comstr=comstr+"\nיתכן שבערך מופיע הצירוף למרות ש. אם מופיע מומלץ להחליפו באף על פי ש או אף ש או על אף ש או לעיתים הגם ש(מידע נוסף ב ויקיפדיה:לשון)";
if(txt.indexOf("כמובן ש",0)!=-1) comstr=comstr+"\nיתכן שבערך מופיע הצירוף כמובן ש. אם מופיע מומלץ להחליפו במובן ש או בכמובן(מידע נוסף ב ויקיפדיה:לשון)";
if(txt.indexOf("כנראה ש",0)!=-1) comstr += "\nבערך מופיע הצירוף כנראה ש. רצוי להחליפו בנראה ש או בכנראה";
if(txt.indexOf("להיכן",0)!=-1 || txt.indexOf("לאיפה",0)!=-1 || txt.indexOf("מהיכן",0)!=-1 || txt.indexOf("מאיפה",0)!=-1) comstr += "\nבערך מופיע בכל\"ם בצמוד לאיפה או להיכן. רצוי להחליף במקרים אלו מומלץ להחליף למילית שאלה אין - לאן או מאין";
if(txt.indexOf("הכי טוב",0)!=-1){
comstr=comstr+"\nבערך זה מופיע הצירוף הכי טוב, יתכן שכדאי להחליפו לטוב ביותר (מידע נוסף ב ויקיפדיה:שגיאות תרגום נפוצות)";
}
if(txt.indexOf("נפלא",0)!=-1) comstr=comstr+"\nיתכן שהערך כולל סופרלטיבים מיותרים; נפלא (וצורת הרבים והנקבה שלו)";
if(txt.indexOf("מחריד",0)!=-1) comstr=comstr+"\nיתכן שהערך כולל סופרלטיבים מיותרים; מחריד (וצורות הרבים והנקבה שלו)";
if(txt.indexOf("מקסים",0)!=-1 || txt.indexOf("מקסימה",0)!=-1 || txt.indexOf("מקסימים",0)!=-1 || txt.indexOf("מקסימות",0)!=-1) comstr=comstr+"\nיתכן שהערך כולל סופרלטיבים מיותרים; מקסים (וצורת הרבים והנקבה שלו)";
if(txt.indexOf("מדהים",0)!=-1 || txt.indexOf("מדהימה",0)!=-1 || txt.indexOf("מדהימים",0)!=-1 || txt.indexOf("מדהימות",0)!=-1) comstr=comstr+"\nיתכן שהערך כולל סופרלטיבים מיותרים; מדהים (וצורת הרבים והנקבה שלו)";
if(txt.indexOf("מהמם",0)!=-1 || txt.indexOf("מהממים",0)!=-1 ||txt.indexOf("מהממת",0)!=-1 || txt.indexOf("מהממות",0)!=-1) comstr=comstr+"\nיתכן שהערך כולל סופרלטיבים מיותרים; מהמם (וצורת הרבים והנקבה שלו)";
if(txt.indexOf("נהדר",0)!=-1) comstr=comstr+"\nיתכן שהערך כולל סופרלטיבים מיותרים; נהדר (וצורת הרבים והנקבה שלו)";
if(txt.indexOf("חתיך",0)!=-1 || txt.indexOf("חתיכים",0)!=-1 || txt.indexOf("חתיכות",0)!=-1 || txt.indexOf("חתיכה",0)!=-1) comstr=comstr+"\nיתכן שהערך כולל סופרלטיבים מיותרים; חתיך (וצורת הרבים והנקבה שלו)";
if(txt.indexOf("למרבה הצער",0)!=-1) comstr=comstr+"\nיתכן שהערך כולל סופרלטיבים מיותרים; למרבה הצער";
if(txt.indexOf("למרבה השמחה",0)!=-1) comstr=comstr+"\nיתכן שהערך כולל סופרלטיבים מיותרים; למרבה השמחה";
if(txt.indexOf("למרבה העצב",0)!=-1) comstr=comstr+"\nיתכן שהערך כולל סופרלטיבים מיותרים; למרבה העצב";
if(txt.indexOf(" יכל",0)!=-1) comstr=comstr+"\nבערך מופיע יכל רצוי להחליפו להיה יכול";
if(txt.indexOf(" ז\"ל",0)!=-1) comstr=comstr+"\nאין להצמיד לאדם את התואר ז\"ל (מידע נוסף ב ויקיפדיה:עקרונות מיוחדים לשפה העברית)";
if(txt.indexOf(" ע\"י",0)!=-1) comstr=comstr+"\nיש ע\"י מומלץ לפתוח את ראשי התיבות ולהחליף ב'על ידי'";
if(txt.indexOf(" בד\"כ",0)!=-1) comstr=comstr+"\nיש בד\"כ מומלץ לפתוח את ראשי התיבות ולהחליף ב'בדרך כלל'";
if(comstr!=""){
alert(comstr);
}
}
/* הוספת כפתורים אישיים: כפתור הפיכת קוד html לוויקי (בעיקר טבלאות), כפתור לביצוע בדיקות שונות וכפתור מיקוף */
function eButtons(){
if (document.getElementById('edit-templates')!=null){
for(var i=0; a = document.getElementsByTagName("div")[i]; i++) {
if(a.className == "editButtons") {
mCusButtons = '<br/><div style="border-bottom:2px dashed #eeeeee">כפתורים נוספים:</div><input type="button" value="בדיקה" onclick="CheckTy();" />';
a.innerHTML += mCusButtons;
}
}
}
}
addOnloadHook(eButtons);
addOnloadHook(wikiCalc);
addOnloadHook(initConfirmLogout);
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript"></script>');
importScript("user:costello/lec.js");
importScript("משתמש:Yonidebest/monobook.js/temp5.js");
importUserScript(29);