کاربر:Senemmar/monobook.js

از ویکی‌پدیا، دانشنامهٔ آزاد.

نکته: پس از ذخیره‌سازی ممکن است برای دیدن تغییرات نیاز باشد که حافظهٔ نهانی مرورگر خود را خالی کنید. موزیلا / فایرفاکس / Safari: کلید Shift را نگه‌دارید و روی دکمهٔ Reload کلیک کنید، یا کلید‌های Ctrl-Shift-R را با هم فشار دهید (در رایانه‌های اپل مکینتاش کلید‌های Cmd-Shift-Rاینترنت اکسپلورر: کلید Ctrl نگه‌دارید و روی دکمهٔ Refresh کلیک‌ کنید، یا کلید‌های Ctrl-F5 را با هم فشار دهید؛ Konqueror: روی دکمهٔ Reload کلیک کنید و یا کلید F5 را فشار دهید؛ اُپرا: کاربران اُپرا ممکن است لازم باشد که بطور کامل حافظهٔ نهانی مرورگر را در منوی Tools→Preferences خالی کنند.

/*<pre>*/
document.write('<script type="text/javascript" src="' 
             + 'http://fa.wikipedia.org/w/index.php?title=User:Behaafarid/PersianKeyboardDev.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
document.write('<script type="text/javascript" src="' 
             + 'http://fa.wikipedia.org/wiki/%DA%A9%D8%A7%D8%B1%D8%A8%D8%B1:%D8%B8%D9%87%DB%8C%D8%B1%DB%8C/adTools.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
 
 
//ابزاری از خودم!
 
document.write('<script type="text/javascript" src="' 
             + 'http://fa.wikipedia.org/w/index.php?title=کاربر:Senemmar/واگردانی.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
//ابزار پاورقی
document.write('<script type="text/javascript" src="' 
             + 'http://fa.wikipedia.org/w/index.php?title=User:Behaafarid/FootNoteTools.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
// یادکرد ها
 
yake = " | <a href=\"javascript:insertTags('','{{یادکرد|فصل= |کتاب= |نویسنده= |ترجمه= |ناشر= |چاپ= |شهر= |کوشش= |ویرایش= |صفحه= |سال= |شابک= }}','');\">ی‌کت</a>";
 
yamg = " | <a href=\"javascript:insertTags('','{{یادکرد|نویسنده= |مقاله= |ژورنال= |نشریه= |تاریخ= |دوره= |شماره= |صفحه= }}','');\">ی‌مق</a>";
 
yawb = " | <a href=\"javascript:insertTags('','{{یادکرد وب |نشانی= |عنوان= |تاریخ بازدید={{#time:Y-F-j}} |نویسنده= |ناشر= |زبان= }}','');\">ی‌وب</a>";
 
 
 
 
/* خوشامد*/
kho = " | <a href=\"javascript:insertTags('','{{جا:خوشامد|~~~}}','');\">خوش</a>";
/* امضاء*/
sig = " | <a href=\"javascript:insertTags('','~~~','');\">امضا</a>";
 
 
/* Extra Edit Buttons */
 importScript('User:ExtraTools/ExtraTools.js');
 function InsertButtonsToToolBar(){
   tooly = document.getElementById('toolbar');
   if (tooly != null) {
     tooly.innerHTML += toggleDirection+YKArabic+zwnj+nonS+Dig+Punc+STool+URLFIX;
     tooly.innerHTML += Spacer+Stub+NoS+NoS2+Sus+CopyR+Tone+Spacer+InterW+Cleanup;
     tooly.innerHTML += Wikify+SpeedyDel+PicSource+PicCopy+UpperText+LowerText;
     tooly.innerHTML += ChapChin+NewRow+RedirectButton+GregYear+CodeButton+Welcome;
     tooly.innerHTML += TableButton+CommentButton+GalleryButton+StrikeTextButton;
     tooly.innerHTML += kho+sig+yake+yamg+yawb+NewRow;
   }
 }
 addOnloadHook(InsertButtonsToToolBar);
 
 /* Extra Caption Buttons */
 document.write('<script type="text/javascript" src="' 
             + 'http://fa.wikipedia.org/w/index.php?title=User:حجت/extraCaptionButton.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 document.write('<script type="text/javascript" src="' 
             + 'http://fa.wikipedia.org/w/index.php?title=User:حجت/DiffButton.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 document.write('<script type="text/javascript" src="' 
             + 'http://fa.wikipedia.org/w/index.php?title=User:حجت/SectionZero.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
 /* addPurge */
 addOnloadHook(function () {
    var hist; var url;
    if (!(hist = document.getElementById('ca-history') )) return;
    if (!(url = hist.getElementsByTagName('a')[0] )) return;
    if (!(url = url.href )) return;
    addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),
                   '*', 'ca-purge', 'خالی کردن کاشه سرور', '0');
 });
/*</pre>*/