משתמש:עידן ד/monobook.js
הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.
- פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
- גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
- אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
// A function wrote by [[w:משתמש:ערן]]
function OthPro()
{
psearch = document.getElementById('p-search');
if (psearch != null) {
var cleaner = "<br style=\\'clear:both;\\' />";
wikilink=""+window.location;
wikilink=wikilink.replace("wikibooks","wikipedia");
wiktlink=""+window.location;
wiktlink=wiktlink.replace("wikibooks","wiktionary");
wikqlink=""+window.location;
wikqlink=wikqlink.replace("wikibooks","wikiquote");
wikslink=""+window.location;
wikslink=wikslink.replace("wikibooks","wikisource");
Nivut = '<div class="portlet">\n<h5><label>מיזמים נוספים</label></h5>\n<div class="pBody"><ul style="margin-left:5em;"><li><a href="'+wikilink+'">ויקיפדיה</a></li>\n<li><a href="'+wiktlink+'">ויקימילון</a></li>\n</li>\n<li><a href="'+wikqlink+'">ויקיציטוט</a></li>\n<li><a href="'+wikslink+'">ויקיטקסט</a></li></ul>\n</div>\n</div>';
psearch.innerHTML = psearch.innerHTML + cleaner + Nivut;
}
}
// A function wrote by [[w:משתמש:ערן]]
function ReplaceBInstallation()
{
edittemplates = document.getElementById('edit-templates');
if (edittemplates != null) {
SearchAndReplaceButton = '<input type="button" value="החלפה" onclick="ReplaceB();" />';
edittemplates.innerHTML = edittemplates.innerHTML+SearchAndReplaceButton;
}
}
function ReplaceB()
{
txt = document.editform.wpTextbox1.value;
SearchStr=prompt('חפש את:');
ReplaceStr=prompt('והחלף ב:');
atab = txt.indexOf(SearchStr,0);
if(ReplaceStr.indexOf(SearchStr)==-1)
{
while(atab!=-1){
txt = txt.replace(SearchStr,ReplaceStr);
atab = txt.indexOf(SearchStr,atab+1);
}
}
document.editform.wpTextbox1.value = txt;
}
/* הפעלת הפונקציות. */
window.onload = Main;
function Main()
{
OthPro();
ReplaceBInstallation();
}
// Include monobook.js from he:User:Roybb95
document.write('<script type="text/javascript" src="http://he.wikipedia.org/w/index.php?title=משתמש:Roybb95/monobook.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');