משתמש:שמוליק/monobook.js
הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.
- פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
- גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
- אינטרנט אקספלורר / אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
- אופרה: ללחוץ על Ctrl-F5.
//fix chrome bug
if (typeof importUserScript=="undefined")
importUserScript = function( number ) {
importScript( "ויקיפדיה:סקריפטים/" + number );
}
/* פופ אפ
// [[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>');
*/
importScript("משתמש:ערן/TranslationTool.js");//כלי עזר לתרגום מערן
importUserScript(2);
importUserScript(5);
function addEditSection0() {
/*edited from ויקיפדיה:סקריפטים/12 */
x = document.getElementById('ca-edit');
if (!x) return;
var isSelected = (x.className.indexOf('selected') != -1);
var isTalk = (x.className.indexOf('istalk') != -1);
var isSection0 = (/&action=edit§ion=0$/.test(window.location.href));
var isSingleSection = (document.getElementsByTagName("h2").length==0);
if ( isTalk)
return;
else if ( isSection0 )
document.getElementById("wpSummary").value = "/* עריכת ההקדמה */ ";
else if (isSingleSection)
return;
else
{
var z = document.createElement('A');
var s = document.createElement('span');
s.appendChild(document.createTextNode('['));
s.className = "editsection";
z.href = x.childNodes[0].href + '§ion=0';
z.appendChild(document.createTextNode('עריכה'));
s.appendChild(z);
s.appendChild(document.createTextNode(']'));
(document.getElementsByTagName("h1"))[0].appendChild(s);
}
}
$(addEditSection0);
mw.loader.load('https://he.wikipedia.org' + wgScript + '?title=משתמש:Mikimik/js/autoStandardContent.js&action=raw&ctype=text/javascript');
importUserScript(64);
/*
// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript');
// install the Hebrew translation for [[:en:User:Cacycle/wikEd]]
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:שמוליק/wikEd_international_he.js&action=raw&ctype=text/javascript');
*/
/*
===================================================================
@ Author: [[user:שמוליק]]
@ Date: 10/06/2011
@ Descrition: Add link to Talk Pages on WatchList
@ Created for: Yoavr763W
=================================================================== */
if (wgPageName == 'מיוחד:רשימת_המעקב')
{
$("a[href*='history']").each(function(){
newLink = $(this).attr("href").match(/title=(.*?)\&/)[1];
if (newLink.indexOf(":") < 0)
newLink = "שיחה:"+newLink;
else if (decodeURIComponent(newLink).indexOf("שיח")==0)
newLink = "";
else
newLink = "שיחת "+newLink;
if (newLink != "")
$(this).after(" | <a href='http://he.wikipedia.org/wiki/"+newLink+"'>שיחה</a>");
})
}