کاربر:Komeil 4life/vector.js: تفاوت میان نسخه‌ها

محتوای حذف‌شده محتوای افزوده‌شده
بدون خلاصۀ ویرایش
صفحه را خالی کرد
 
خط ۱:
//Reftoolbar
 
importScript('کاربر:Mardetanha/refToolbar.js');
importScript('کاربر:Ladsgroup/sidebartranslate.js');
importScript('کاربر:Ladsgroup/stubtagtab.js');
importScript('کاربر:Ladsgroup/wikEdDiff.js');
importScript('کاربر:Ladsgroup/patroller.js');
importScript('کاربر:Ladsgroup/Google link');
 
/*<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/w/index.php?title=User:mardetanha/revert.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:mardetanha/FootNoteTools.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>');
//<pre style="direction:ltr">
 
 
/*************
CHARACTERS
*************/
// Aquired from User:Behaafarid/EsfahbodTools.js
function fromEntityToUtf8 (obj) {
obj.value = obj.value.replace(/&#([0-9]+);/g,
function(s, n, ofs, all) {
return String.fromCharCode(n);
}
);
}
function fromUtf8ToEntity (obj_id) {
var obj = document.getElementById (obj_id);
obj.value = obj.value.replace(/([^\x00-\x7f])/g,
function(s, c, ofs, all) {
c = String(c);
return "&#"+c.charCodeAt(0)+";";
}
);
}
function escapeHTMLEntities (obj_id) {
var obj = document.getElementById (obj_id);
s = obj.value;
s = s.replace(/&/g, '&amp;');
s = s.replace(/</g, '&lt;');
s = s.replace(/>/g, '&gt;');
s = s.replace(/'/g, '&apos;');
s = s.replace(/"/g, '&quot;');
obj.value = s;
}
function unescapeHTMLEntities (obj_id) {
var obj = document.getElementById (obj_id);
s = obj.value;
s = s.replace(/&lt;/g, '<');
s = s.replace(/&gt/g, '<');
s = s.replace(/&apos;/g, '\'');
s = s.replace(/&quot;/g, '"');
s = s.replace(/&amp;/g, '&');
obj.value = s;
}
//Aquired from Hojjat's HojjatTools.js subpage
function AtSignReplace (obj){
var s = obj.value;
s=s.replace(/([^\s]+?)@([^\s]+?)/g,'$1[[تصویر:At-sign.gif]]$2');
obj.value=s;
}
//</pre>
//<pre style="direction:ltr">
/************
DICTATION
*************/
function URLfix (obj) {
s = obj.value;
s = s.replace(/(http[^\s]+?)\%20/g,
'$1\u200c\u200c\u200c_\u200c\u200c\u200c');
s = s.replace(/(http[^\s]+)/g,function(s,p){return decodeURI(p)});
s = s.replace(/\u200c\u200c\u200c_\u200c\u200c\u200c/g,'%20');
obj.value = s;
}
function YKarabic (obj) {
//ي --> ی و ك --> ک
s = obj.value;
var sold= s;
//برای جلوگیری از خرابکاری در پیوند تصویرها و میان‌ویکی
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)ي(.*?)\]\]/g,
'[[$1\u200c\u200c\u200cی\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)ك(.*?)\]\]/g,
'[[$1\u200c\u200c\u200cک\u200c\u200c\u200c$2]]');
while (sold!=s)
{
sold =s;
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)ي(.*?)\]\]/g,
'[[$1\u200c\u200c\u200cی\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)ك(.*?)\]\]/g,
'[[$1\u200c\u200c\u200cک\u200c\u200c\u200c$2]]');
}
s = s.replace(/ي/g, 'ی');
s = s.replace(/ك/g, 'ک');
s= s.replace(/\u200c\u200c\u200cی\u200c\u200c\u200c/g, 'ي');
s= s.replace(/\u200c\u200c\u200cک\u200c\u200c\u200c/g, 'ك');
//اصلاح ی و ک در متنهای عربی
sold = s;
s = s.replace(/\{\{عربی([^(\}\})]*?)ی(.*?)\}\}/g, '{{عربی$1ي$2}}');
s = s.replace(/\{\{عربی([^(\}\})]*?)ک(.*?)\}\}/g, '{{عربی$1ك$2}}');
s = s.replace(/\{\{آغاز\sعربی\}\}([^(پایان\sعربی\}\})]*?)ی(.*?)پایان\sعربی\}\}/g,
'{{آغاز عربی}}$1ي$2پایان عربی}}');
s = s.replace(/\{\{شروع\sعربی\}\}([^(پایان\sعربی\}\})]*?)ی(.*?)پایان\sعربی\}\}/g,
'{{شروع عربی}}$1ي$2پایان عربی}}');
s = s.replace(/\{\{آغاز\sعربی\}\}([^(پایان\sعربی\}\})]*?)ک(.*?)پایان\sعربی\}\}/g,
'{{آغاز عربی}}$1ك$2پایان عربی}}');
s = s.replace(/\{\{شروع\sعربی\}\}([^پایان\sعربی(\}\})]*?)ک(.*?)پایان\sعربی\}\}/g,
'{{شروع عربی}}$1ك$2پایان عربی}}');
s = s.replace(/\[\[ar:(.*?)ی(.*?)\]\]/g, '[[ar:$1ي$2]]');
s = s.replace(/\[\[ar:(.*?)ک(.*?)\]\]/g, '[[ar:$1ك$2]]');
while (sold!=s)
{
sold=s;
s = s.replace(/\{\{عربی([^(\}\})]*?)ی(.*?)\}\}/g, '{{عربی$1ي$2}}');
s = s.replace(/\{\{عربی([^(\}\})]*?)ک(.*?)\}\}/g, '{{عربی$1ك$2}}');
s = s.replace(/\{\{آغاز\sعربی\}\}([^(پایان\sعربی\}\})]*?)ی(.*?)پایان\sعربی\}\}/g,
'{{آغاز عربی}}$1ي$2پایان عربی}}');
s = s.replace(/\{\{شروع\sعربی\}\}([^(پایان\sعربی\}\})]*?)ی(.*?)پایان\sعربی\}\}/g,
'{{شروع عربی}}$1ي$2پایان عربی}}');
s = s.replace(/\{\{آغاز\sعربی\}\}([^(پایان\sعربی\}\})]*?)ک(.*?)پایان\sعربی\}\}/g,
'{{آغاز عربی}}$1ك$2پایان عربی}}');
s = s.replace(/\{\{شروع\sعربی\}\}([^پایان\sعربی(\}\})]*?)ک(.*?)پایان\sعربی\}\}/g,
'{{شروع عربی}}$1ك$2پایان عربی}}');
s = s.replace(/\[\[ar:(.*?)ی(.*?)\]\]/g, '[[ar:$1ي$2]]');
s = s.replace(/\[\[ar:(.*?)ک(.*?)\]\]/g, '[[ar:$1ك$2]]');
}
//حدف نویسهٔ ممنوع ۰۶۴۹
sold = s;
//جلوگیری از تغییر متن نشان عربی خورده و تصویر و پیوندهای میان‌ویکی
s = s.replace (/\[\[([^\]]*?\:[^\]]*?)ى(.*?)\]\]/g,
'[[$1\u200c\u200c\u200cی\u200c\u200c\u200c$2]]');
s = s.replace(/\{\{عربی(.*?)ى(.*?)\}\}/g,
'{{عربی$1\u200c\u200c\u200cی\u200c\u200c\u200c$2}}');
s = s.replace(/\{\{آغاز عربی(.*?)ى(.*?)پایان عربی\}\}/g,
'{{آغاز عربی$1\u200c\u200c\u200cی\u200c\u200c\u200c$2پایان عربی}}');
s = s.replace(/\{\{شروع عربی(.*?)ى(.*?)پایان عربی\}\}/g,
'{{شروع عربی$1\u200c\u200c\u200cی\u200c\u200c\u200c$2پایان عربی}}');
while (sold!=s)
{
sold=s;
s = s.replace (/\[\[([^\]]*?\:[^\]]*?)ى(.*?)\]\]/g,
'[[$1\u200c\u200c\u200cی\u200c\u200c\u200c$2]]');
s = s.replace(/\{\{عربی(.*?)ى(.*?)\}\}/g,
'{{عربی$1\u200c\u200c\u200cی\u200c\u200c\u200c$2}}');
s = s.replace(/\{\{آغاز عربی(.*?)ى(.*?)پایان عربی\}\}/g,
'{{آغاز عربی$1\u200c\u200c\u200cی\u200c\u200c\u200c$2پایان عربی}}');
s = s.replace(/\{\{شروع عربی(.*?)ى(.*?)پایان عربی\}\}/g,
'{{شروع عربی$1\u200c\u200c\u200cی\u200c\u200c\u200c$2پایان عربی}}');
}
s = s.replace(/ى/g, 'ی');
s = s.replace(/\u200c\u200c\u200cی\u200c\u200c\u200c/g, 'ى');
//اصلاح رده‌ها
sold=s;
s = s.replace(/\[\[(رده|Category|category):(.*?)(ى|ي)(.*?)\]\]/g, '[[$1:$2ی$4]]');
s = s.replace(/\[\[(رده|Category|category):(.*?)ك(.*?)\]\]/g, '[[$1:$2ک$3]]');
while(sold!=s)
{
sold=s;
s = s.replace(/\[\[(رده|Category|category):(.*?)(ى|ي)(.*?)\]\]/g, '[[$1:$2ی$4]]');
s = s.replace(/\[\[(رده|Category|category):(.*?)ك(.*?)\]\]/g, '[[$1:$2ک$3]]');
}
obj.value = s;
}
function FM (obj) {
//FM = Faseleh Majazi
s = obj.value;
//تبدیل الگو {{فم}} به نویسه فاصله مجازی
s = s.replace(/\{\{فم\}\}/g,'\u200c');
//تبديل چند فاصله مجازی پشت سر هم به یک فاصله مجازی
s = s.replace(/(\u200c)+/g, '\u200c');
//حذف فاصلهٔ مجازی بعد از آادذرزژو . ، « »
s = s.replace(/([\.،«»\:؛\sآادذرزژو])\u200c/g,'$1');
 
//حذف فاصلهٔ مجازی پیش از حروف لاتین و نیز نشانه‌های سجاوندی
s = s.replace(/\u200c([\w\[\]\n\s\.،«»\:؛])/g,'$1');
//اصلاح می پیشوندی
s = s.replace(/\sمی\s/g, ' می\u200c');
s = s.replace(/\sنمی\s/g, ' نمی\u200c');
s = s.replace(/\sمی\u200cو\s/g, ' می و');
//فعلهای مصدر بودن
s = s.replace(/ه\sام([\]\.،\:»\)\s])/g, 'ه\u200cام$1');
s = s.replace(/ه\sای([\]\.،\:»\)\s])/g, 'ه\u200cای$1');
s = s.replace(/([^ا])ه\sاست([\]\.،\:»\)\s])/g, '$1ه\u200cاست$2');
s = s.replace(/ه\sایم([\]\.،\:»\)\s])/g, 'ه\u200cایم$1');
s = s.replace(/ه\sاید([\]\.،\:»\)\s])/g, 'ه\u200cاید$1');
s = s.replace(/ه\sاند([\]\.،\:»\)\s])/g, 'ه\u200cاند$1');
/*چسباندن ها بر اساس مفاد دستور خط فرهنگستان و شیوه\u200cنامهٔ ویکی\u200cپدیا:*/
//تمام «ها» با فاصلهٔ مجازی می‌چسبند. و این مطابق مفاد آخرین شیوه‌نامه غلط نیست.
s=s.replace(/\sها([\]\.،\:»\)\s])/g, '\u200cها$1');
s=s.replace(/\sها(ی|یی|یم|یت|یش|مان|تان|شان)([\]\.،\:»\)\s])/g,
'\u200cها$1$2');
obj.value = s;
}
function NonStandard (obj) {
s = obj.value;
//همزه روی ی
s = s.replace(/ه\u200cی\s/g, 'هٔ ');
s = s.replace(/ه\sی\s/g, 'هٔ ');
s = s.replace(/ۀ/g, 'هٔ');
s = s.replace(/هء /g, 'هٔ ');
s = s.replace(/ه‌یی/g, 'ه‌ای');
//نویسه غیر استاندارد برای تنوین
s = s.replace(/ا"/g,'اً')
//تبدیل الگو {{ی}} به نویسه
s = s.replace(/\{\{ی\}\}/g,'ٔ');
//فارسی‌سازی گیومه
s=s.replace(/"(.*?)"/g,'«$1»');
s=s.replace(/«([\w]*?)»/g,'"$1"');
// ... but to fix the problem with HTML double quotes...
s=s.replace(/(\w)=«([^"]*?)»/g,'$1="$2"');
//تنوين اشتباه
s=s.replace(/ا\sً/g,'اً')
obj.value = s;
}
function digits (obj) {
//Convert Codes to Characters
fromEntityToUtf8(obj);
s = obj.value;
var sold=null;
while (sold!=s)
{
sold=s;
//برای جلوگیری از خرابکاری در پیوند تصویرها و میان‌ویکی
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)1(.*?)\]\]/g, '[[$1\u200c\u200c\u200c۱\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)2(.*?)\]\]/g, '[[$1\u200c\u200c\u200c۲\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)3(.*?)\]\]/g, '[[$1\u200c\u200c\u200c۳\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)4(.*?)\]\]/g, '[[$1\u200c\u200c\u200c۴\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)5(.*?)\]\]/g, '[[$1\u200c\u200c\u200c۵\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)6(.*?)\]\]/g, '[[$1\u200c\u200c\u200c۶\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)7(.*?)\]\]/g, '[[$1\u200c\u200c\u200c۷\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)8(.*?)\]\]/g, '[[$1\u200c\u200c\u200c۸\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)9(.*?)\]\]/g, '[[$1\u200c\u200c\u200c۹\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)0(.*?)\]\]/g, '[[$1\u200c\u200c\u200c۰\u200c\u200c\u200c$2]]');
s=s.replace (/\[\[([^\]]*?\:[^\]]*?)\%(.*?)\]\]/g, '[[$1\u200c\u200c\u200c٪\u200c\u200c\u200c$2]]');
// برای جلوگیری از خرابکاری در پیوند به بیرون
s = s.replace(/(http[^\s]+?)1/g,'$1\u200c\u200c\u200c۱\u200c\u200c\u200c');
s = s.replace(/(http[^\s]+?)2/g,'$1\u200c\u200c\u200c۲\u200c\u200c\u200c');
s = s.replace(/(http[^\s]+?)3/g,'$1\u200c\u200c\u200c۳\u200c\u200c\u200c');
s = s.replace(/(http[^\s]+?)4/g,'$1\u200c\u200c\u200c۴\u200c\u200c\u200c');
s = s.replace(/(http[^\s]+?)5/g,'$1\u200c\u200c\u200c۵\u200c\u200c\u200c');
s = s.replace(/(http[^\s]+?)6/g,'$1\u200c\u200c\u200c۶\u200c\u200c\u200c');
s = s.replace(/(http[^\s]+?)7/g,'$1\u200c\u200c\u200c۷\u200c\u200c\u200c');
s = s.replace(/(http[^\s]+?)8/g,'$1\u200c\u200c\u200c۸\u200c\u200c\u200c');
s = s.replace(/(http[^\s]+?)9/g,'$1\u200c\u200c\u200c۹\u200c\u200c\u200c');
s = s.replace(/(http[^\s]+?)0/g,'$1\u200c\u200c\u200c۰\u200c\u200c\u200c');
s = s.replace(/(http[^\s]+?)\%/g,'$1\u200c\u200c\u200c٪\u200c\u200c\u200c');
// برای جلوگیری از خرابکاری در فرمولهای ریاضی
s=s.replace (/\<math\>(.*?)1(.*?)\<\/math\>/g,
'<math>$1\u200c\u200c\u200c۱\u200c\u200c\u200c$2</math>');
s=s.replace (/\<math\>(.*?)2(.*?)\<\/math\>/g,
'<math>$1\u200c\u200c\u200c۲\u200c\u200c\u200c$2</math>');
s=s.replace (/\<math\>(.*?)3(.*?)\<\/math\>/g,
'<math>$1\u200c\u200c\u200c۳\u200c\u200c\u200c$2</math>');
s=s.replace (/\<math\>(.*?)4(.*?)\<\/math\>/g,
'<math>$1\u200c\u200c\u200c۴\u200c\u200c\u200c$2</math>');
s=s.replace (/\<math\>(.*?)5(.*?)\<\/math\>/g,
'<math>$1\u200c\u200c\u200c۵\u200c\u200c\u200c$2</math>');
s=s.replace (/\<math\>(.*?)6(.*?)\<\/math\>/g,
'<math>$1\u200c\u200c\u200c۶\u200c\u200c\u200c$2</math>');
s=s.replace (/\<math\>(.*?)7(.*?)\<\/math\>/g,
'<math>$1\u200c\u200c\u200c۷\u200c\u200c\u200c$2</math>');
s=s.replace (/\<math\>(.*?)8(.*?)\<\/math\>/g,
'<math>$1\u200c\u200c\u200c۸\u200c\u200c\u200c$2</math>');
s=s.replace (/\<math\>(.*?)9(.*?)\<\/math\>/g,
'<math>$1\u200c\u200c\u200c۹\u200c\u200c\u200c$2</math>');
s=s.replace (/\<math\>(.*?)0(.*?)\<\/math\>/g,
'<math>$1\u200c\u200c\u200c۰\u200c\u200c\u200c$2</math>');
s=s.replace (/\<math\>(.*?)%(.*?)\<\/math\>/g,
'<math>$1\u200c\u200c\u200c٪\u200c\u200c\u200c$2</math>');
}
s = s.replace(/1/g,'۱');
s = s.replace(/\u200c\u200c\u200c۱\u200c\u200c\u200c/g,'1');
s = s.replace(/2/g,'۲');
s = s.replace(/\u200c\u200c\u200c۲\u200c\u200c\u200c/g,'2');
s = s.replace(/3/g,'۳');
s = s.replace(/\u200c\u200c\u200c۳\u200c\u200c\u200c/g,'3');
s = s.replace(/4/g,'۴');
s = s.replace(/\u200c\u200c\u200c۴\u200c\u200c\u200c/g,'4');
s = s.replace(/5/g,'۵');
s = s.replace(/\u200c\u200c\u200c۵\u200c\u200c\u200c/g,'5');
s = s.replace(/6/g,'۶');
s = s.replace(/\u200c\u200c\u200c۶\u200c\u200c\u200c/g,'6');
s = s.replace(/7/g,'۷');
s = s.replace(/\u200c\u200c\u200c۷\u200c\u200c\u200c/g,'7');
s = s.replace(/8/g,'۸');
s = s.replace(/\u200c\u200c\u200c۸\u200c\u200c\u200c/g,'8');
s = s.replace(/9/g,'۹');
s = s.replace(/\u200c\u200c\u200c۹\u200c\u200c\u200c/g,'9');
s = s.replace(/0/g,'۰');
s = s.replace(/\u200c\u200c\u200c۰\u200c\u200c\u200c/g,'0');
s = s.replace(/\%/g,'٪');
s = s.replace(/\u200c\u200c\u200c٪\u200c\u200c\u200c/g,'%');
//آوردن دخل ارقام عربی:
s=s.replace(/٠/g,'۰');
s=s.replace(/١/g,'۱');
s=s.replace(/٢/g,'۲');
s=s.replace(/٣/g,'۳');
s=s.replace(/٤/g,'۴');
s=s.replace(/٥/g,'۵');
s=s.replace(/٦/g,'۶');
s=s.replace(/٧/g,'۷');
s=s.replace(/٨/g,'۸');
s=s.replace(/٩/g,'۹');
//ممیز و هزارگان
s = s.replace(/([۱۲۳۴۵۶۷۸۹۰])\.([۱۲۳۴۵۶۷۸۹۰])/g,'$1٫$2');
s = s.replace(/([۱۲۳۴۵۶۷۸۹۰]),([۱۲۳۴۵۶۷۸۹۰])/g,'$1٬$2');
obj.value = s;
}
function Punctuation (obj){
//حل مشکلات نقطه گذاری
var s = obj.value;
s=s.replace(/([\(«])\s/g,'$1');
s=s.replace(/\s([\)»])/g,'$1');
s=s.replace(/\s+\./g,'.'); //No spaces before a full stop.
s=s.replace(/\s+،/g,'،'); //No spaces before a comma.
s=s.replace(/،(\S+?)/g,'، $1'); //Space is necessary after a comma.
s = s.replace(/\s([^\s\[]*?)\s:\s([^\s\[]*?)\s/,' $1: $2 '); //No spaces before a colon.
obj.value=s;
}
function SuperTool (obj){
YKarabic (obj);
FM (obj);
NonStandard (obj);
digits (obj);
Punctuation (obj);
}
//</pre>
//<pre style="direction:ltr">
function toggleDir (obj) {
var isrtl = 0;
if (obj){
isrtl = obj.style.direction != 'ltr';
if (isrtl){
obj.style.textAlign = "left";
obj.style.direction = "ltr";
} else {
obj.style.textAlign = "right";
obj.style.direction = "rtl";
}
}
}
//</pre>
//<pre style="direction:ltr;">
/**********
WIKIFY
**********/
function InterwikiSorter(obj){
var ref = /\[\[(\w\w\w?|bat-smg|be-x-old|cbk-zam|fiu-vro|nds-nl|roa-tara|ru-sib|simple|tokipona|zh-classical|zh-min-nan|zh-yue)\:(.*?)\]\]\n?(\s*)/g
var s = obj.value;
//extract interwiki's and delete them temply from string
interwikis = s.match(ref)
s = s.replace(ref,"")
//sort interwikis
interwikis = interwikis.sort()
//put interwiki's back
s = s + "\r\n" + interwikis.join("");
//update string.
obj.value=s;
}
//</pre>
//<pre style="direction:ltr;text-align:left">
/**********
BUTTONS
**********/
/*تغییر جهت*/
toggleDirection = "<a href=\"javascript:toggleDir(document.editform.wpTextbox1);\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/d/d0/Button_toggle_dir.png"
+ "\" title=\"تغییر جهت جعبه ویرایش\"></a>";
/* ی ک */
YKArabic = "<a href=\"javascript:YKarabic(document.editform.wpTextbox1);\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/8/88/Button_YehKeh.png"
+ "\" title=\"اصلاح کاف و یا\"></a>";
/*فاصله مجازی*/
zwnj = "<a href=\"javascript:FM(document.editform.wpTextbox1);\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/d/d0/Button_ZWNJ.png"
+ "\" title=\"فاصله مجازی\"></a>";
/*نویسه غیراستاندارد*/
nonS = "<a href=\"javascript:NonStandard(document.editform.wpTextbox1);\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/9/94/Button_non_standard.png"
+ "\" title=\"نویسه غیر استاندارد\"></a>";
/*فارسی‌سازی ارقام*/
Dig= "<a href=\"javascript:digits(document.editform.wpTextbox1);"
+ "void(document.getElementById('wpSummary').value='فارسی سازی ارقام')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/4/4a/Button_numbers.png"
+ "\" title=\"فارسی سازی ارقام\"></a>";
/*تبدیل به یونیکد در آدرس‌های وب*/
URLFIX = "<a href=\"javascript:URLfix(document.editform.wpTextbox1);\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/b/ba/Button_decode_URI.png"
+ "\" title=\"تبدیل به یونیکد در آدرس‌های وب\"></a>";
/*اَبَرابزار*/
STool= "<a href=\"javascript:SuperTool(document.editform.wpTextbox1);\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/f/fc/Button_super_tool.png"
+ "\" title=\"ابر ابزار\"></a>";
/*اصلاح علامت @*/
AtSignFix = "<a href=\"javascript:AtSignReplace(document.editform.wpTextbox1);\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/7/7f/Button_at_sign.png"
+ "\" title=\"اصلاح علامت @\"></a>";
/*ویکی‌سازی*/
Wikify = "<a href=\"javascript:document.editform.wpTextbox1.value='{{ویکی‌سازی}}\\n'+"
+ "document.editform.wpTextbox1.value;"
+ "void(document.getElementById('wpSummary').value='برچسب')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/3/38/Button_wikify.png"
+ "\" title=\"ویکی\u200Cسازی\"></a>";
 
/*بدون منبع*/
NoS= "<a href=\"javascript:document.editform.wpTextbox1.value='{{بدون منبع}}\\n'+"
+ "document.editform.wpTextbox1.value;"
+ "void(document.getElementById('wpSummary').value='برچسب')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/8/8a/Button_no_source_fa.png"
+ "\" title=\"بدون منبع\"></a>";
/*بدون منبع ۲*/
NoS2= "<a href=\"javascript:insertTags('{{بدون منبع ۲','}}','|روز=|ماه=|سال=');"
+ "void(document.getElementById('wpSummary').value='برچسب')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/8/8a/Button_no_source_fa.png"
+ "\" title=\"بدون منبع مهلت دار\"></a>";
/*حق تکثیر مشکوک*/
Sus= "<a href=\"javascript:document.editform.wpTextbox1.value='{{حق تکثیر مشکوک}}\\n'+"
+ "document.editform.wpTextbox1.value;"
+ "void(document.getElementById('wpSummary').value='حق تکثیر مشکوک')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/c/c7/Button_Sus.png"
+ "\" title=\"حق تکثیر مشکوک\"></a>";
/*نقض حق تکثیر*/
CopyR= "<a href=\"javascript:document.editform.wpTextbox1.value='';"
+ "insertTags('{{نقض حق تکثیر|url=','}}','Address');"
+ "void(document.getElementById('wpSummary').value='نقض حق تکثیر');\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/6/6f/Button_CopyR.png"
+ "\" title=\"نقض حق تکثیر\"></a>";
/*لحن نامناسب*/
Tone= "<a href=\"javascript:document.editform.wpTextbox1.value='{{لحن نامناسب}}\\n'+"
+ "document.editform.wpTextbox1.value;"
+ "void(document.getElementById('wpSummary').value='برچسب')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/f/fc/Button_Tone.png"
+ "\" title=\"لحن نامناسب\"></a>";
/*خرد*/
Stub= "<a href=\"javascript:document.editform.wpTextbox1.value='{{خرد}}\\n'+"
+ "document.editform.wpTextbox1.value;"
+ "void(document.getElementById('wpSummary').value='برچسب')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/f/fc/Button_stub_fa.png"
+ "\" title=\"خرد\"></a>";
 
/*سرشناسی*/
Stub= "<a href=\"javascript:document.editform.wpTextbox1.value='{{سرشناسی}}\\n'+"
+ "document.editform.wpTextbox1.value;"
+ "void(document.getElementById('wpSummary').value='برچسب')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/f/fc/Button_stub_fa.png"
+ "\" title=\"سرشناسی\"></a>";
/*اصلاحات نقطه گذاری*/
Punc = "<a href=\"javascript:Punctuation(document.editform.wpTextbox1)\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/e/ed/Button_punctuation.png"
+ "\" title=\"نقطه‌گذاری\"></a>";
/*اصلاح ترتیب میان‌ویکی‌ها*/
InterW = "<a href=\"javascript:InterwikiSorter(document.editform.wpTextbox1)\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/9/96/Button_interwiki.png"
+ "\" title=\"اصلاح ترتیب میان‌ویکی‌ها\"></a>";
/* چپچین */
ChapChin = "<a href=\"javascript:insertTags('{{چپ‌چین}}\\n',"
+"'\\n{{پایان چپ‌چین}}','متن چپ‌چین شده')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/en/e/ea/Button_align_left.png"
+ "\" title=\"چپ‌چین کردن متن\"></a>";
/* سر سطر */
SareSatr = "<a href=\"javascript:insertTags('<br />','','');\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png"
+ "\" title=\"سر سطر\"></a>";
/* اندیس بالا */
UpperText = "<a href=\"javascript:insertTags('<sup>','</sup>','اندیس');\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png"
+"\" title=\"اندیس بالا\"></a>";
/* اندیس پایین */
LowerText = "<a href=\"javascript:insertTags('<sub>','</sub>','اندیس');\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png"
+"\" title=\"اندیس پایین\"></a>";
/* حذف سریع */
SpeedyDel = "<a href=\"javascript:document.editform.wpTextbox1.value='';"
+ "insertTags('{{حذف سریع|','}}','معیار');"
+ "void(document.getElementById('wpSummary').value='حذف سریع');\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/c/c1/Button_delete_vote.png"
+ "\" title=\"حذف سریع\"></a>";
/* منبع تصویر نامعلوم */
PicSource = "<a href=\"javascript:document.editform.wpTextbox1.value="
+ "'{{منبع تصویر نامعلوم}}\\n'+ document.editform.wpTextbox1.value;"
+ "void(document.getElementById('wpSummary').value='منبع تصویر نامعلوم')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/5/59/Button_image_source.png"
+ "\" title=\"منبع تصویر نامعلوم\"></a>";
/* حق تکثیر تصویر نامعلوم */
PicCopy = "<a href=\"javascript:document.editform.wpTextbox1.value="
+ "'{{حق تکثیر تصویر نامعلوم}}\\n'+ document.editform.wpTextbox1.value;"
+ "void(document.getElementById('wpSummary').value='حق تکثیر تصویر نامعلوم')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/fa/7/7e/Button_image_copyright.png"
+ "\" title=\"حق تکثیر تصویر نامعلوم\"></a>";
/* تمیزکاری */
Cleanup = "<a href=\"javascript:document.editform.wpTextbox1.value='{{تمیزکاری}}\\n'+"
+ "document.editform.wpTextbox1.value;"
+ "void(document.getElementById('wpSummary').value='برچسب')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/commons/2/2e/Button_broom.png"
+ "\" title=\"تمیزکاری\"></a>";
/* تغییر مسیر */
RedirectButton = "<a href=\"javascript:document.editform.wpTextbox1.value='';"
+ "insertTags('#تغییرمسیر [[',']]','پیوند');"
+ "void(document.getElementById('wpSummary').value='تغییر مسیر');\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png"
+ "\" title=\"تغيير مسير\"></a>";
/* سال میلادی */
GregYear = "<a href=\"javascript:insertTags('[[','&nbsp(میلادی)|]]','۱۹۰۰');\"><img src=\""
+ "http://upload.wikimedia.org/wikibooks/fa/a/a7/Button_cal.png"
+ "\" title=\"سال میلادی\"></a>";
/* خوشامدید */
Welcome = "<a href=\"javascript:insertTags('{{جا:خوشامدید|~~~~}}','','');"
+ "void(document.getElementById('wpSummary').value='خوشامد')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/commons/5/5b/Button_check.png"
+ "\" title=\"خوشامد\"></a>";
/* جدول */
TableButton = "<a href=\"javascript:insertTags('\\n{| border=\"1\" \\n|- \\n|"
+ " ش۱ || ش۲ \\n|- \\n| ش۳ || ش۴','\\n|}\\n','');\"><img src=\""
+ "http://upload.wikimedia.org/wikibooks/fa/6/60/Button_insert_table.png"
+ "\" title=\"جدول\"></a>";
 
var selObj = new Array();
selObj[0] = new Array("","برای مقاله");
selObj[1] = new Array("f0","حذف سریع");
selObj[2] = new Array("f1","نقض حق‌تکثیر");
selObj[3] = new Array("f2","حق‌تکثیر مشکوک");
selObj[4] = new Array("f3","بدون‌منبع");
selObj[5] = new Array("f4","ویکی‌سازی");
selObj[6] = new Array("f5","لحن نامناسب");
selObj[7] = new Array("f6","تمیزکاری");
selObj[8] = new Array("f7","یادکرد دقیق");
selObj[9] = new Array("f8","سرشناسی");
selObj[10] = new Array("f9","خرد");
selObj[11] = new Array("f10","درخواست مدرک");
selObj[12] = new Array("f11","یادکرد وب");
selObj[13] = new Array("f12","یادکرد خبر");
selObj[14] = new Array("f13","یادکرد کتاب");
selObj[15] = new Array("f14","کارنمای زنان");
selObj[16] = new Array("f15","ref name");
selObj[17] = new Array("f16","پانویس");
selObj[18] = new Array("f17","بهبود‌منبع");
selObj[19] = new Array("f18","منبع نادرست");
 
 
optionsString='';
for (var iloop = 0 ; iloop < selObj.length ; iloop++)
{
optionsString = optionsString + "<option value='" + selObj[iloop][0] + "'>" + selObj[iloop][1] + "</option>"
}
labelCombo = "<select name='labelCombo' onChange='doAction(this.selectedIndex)'>" + optionsString + "</select>";
function doAction(selectItemIndex)
{
switch(selectItemIndex)
{
 
case 1:
document.editform.wpTextbox1.value='';
insertTags('{{حذف سریع|','}}','معیار');
document.getElementById('wpSummary').value='حذف سریع';
break
case 2:
document.editform.wpTextbox1.value='';
insertTags('{{نقض حق تکثیر|url=','}}','Address');
document.getElementById('wpSummary').value='نقض حق تکثیر';
break
case 3:
document.editform.wpTextbox1.value='{{حق تکثیر مشکوک}}\n'+ document.editform.wpTextbox1.value;
document.getElementById('wpSummary').value='حق تکثیر مشکوک';
break
case 4:
document.editform.wpTextbox1.value='{{بدون منبع}}\n' + document.editform.wpTextbox1.value;
document.getElementById('wpSummary').value='برچسب';
break
case 5:
document.editform.wpTextbox1.value='{{ویکی‌سازی}}\n'+ document.editform.wpTextbox1.value;
document.getElementById('wpSummary').value='برچسب';
break
case 6:
document.editform.wpTextbox1.value='{{لحن نامناسب}}\n'+ document.editform.wpTextbox1.value;
document.getElementById('wpSummary').value='برچسب';
break
case 7:
document.editform.wpTextbox1.value='{{تمیزکاری}}\n'+ document.editform.wpTextbox1.value;
document.getElementById('wpSummary').value='برچسب';
break
case 8:
document.editform.wpTextbox1.value='{{یادکرد دقیق}}\n'+ document.editform.wpTextbox1.value;
document.getElementById('wpSummary').value='برچسب';
break
case 9:
document.editform.wpTextbox1.value='{{سرشناسی}}\n'+ document.editform.wpTextbox1.value;
document.getElementById('wpSummary').value='برچسب';
break
case 10:
insertTags('{{','خرد}}','-');
document.getElementById('wpSummary').value='برچسب';
break
case 11:
insertTags('{{مدرک','}}','|');
document.getElementById('wpSummary').value='درخواست منبع';
break
case 12:
insertTags('{{یادکرد وب| نشانی = ',' | عنوان = | نویسنده = | تاریخ بازدید = سپتامبر ۲۰۰۸| تاریخ = | ناشر = وب‌گاه رسمی | صفحه = | زبان = }}','');
document.getElementById('wpSummary').value='یادکرد منبع';
break
case 13:
insertTags('{{یادکرد خبر|نام = |نام خانوادگی = |همکاران = |پیوند = ',' |عنوان =| اثر = | ناشر = |صفحات = |صفحه = |تاریخ = |بازیابی = |زبان = }}','');
break
case 14:
insertTags('{{یادکرد |کتاب = |نویسنده = |ترجمه = |فصل = |صفحه = ','| ناشر = | چاپ = | سال = |شابک = }}','ص. ');
document.getElementById('wpSummary').value='یادکرد منبع';
break
case 15:
insertTags('<refname=Farokhzad>{{یادکرد| کتاب= کارنمای زنان کارای ایران (از دیروز تا امروز) | نویسنده = [[پوران فرخزاد|فرخ‌زاد، پوران]] |ناشر = نشر قطره |شهر= [[تهران]] | سال=[[۱۳۸۱]] | صفحه = ',' | شابک= ISBN 9643411168}}</ref>','');
document.getElementById('wpSummary').value='یادکرد منبع';
break
case 16:
insertTags('<ref name=','/>. ','A');
break
case 17:
insertTags('==','پانویس','==\n{{پانویس}}');
break
case 18:
document.editform.wpTextbox1.value='{{بهبود منبع}}\n' + document.editform.wpTextbox1.value;
document.getElementById('wpSummary').value='برچسب';
break
case 19:
document.editform.wpTextbox1.value='{{منبع نادرست}}\n' + document.editform.wpTextbox1.value;
document.getElementById('wpSummary').value='برچسب';
break
 
}
}
 
var selObj2 = new Array();
selObj2[0] = new Array("","برای کاربران");
selObj2[1] = new Array("f0","خوش‌آمدید");
selObj2[2] = new Array("f1","هشدار به خرابکار");
selObj2[3] = new Array("f2","کپی مکنید");
selObj2[4] = new Array("f3","منبع مطالب");
selObj2[5] = new Array("f4","تبلیغ مکنید");
selObj2[6] = new Array("f5","امتحان");
optionsString2='';
for (var iloop = 0 ; iloop < selObj2.length ; iloop++)
{
optionsString2 = optionsString2 + "<option value='" + selObj2[iloop][0] + "'>" + selObj2[iloop][1] + "</option>"
}
labelCombo2 = "<select name='labelCombo2' onChange='doAction2(this.selectedIndex)'>" + optionsString2 + "</select>";
function doAction2(selectItemIndex)
{
switch(selectItemIndex)
{
case 1:
insertTags('==راهنمایی و خوشامد==\n{{جا:خوشامدید|~~~~}}','','');
document.getElementById('wpSummary').value='خوشامد';
break
case 2:
insertTags('{{جا:هشدار به خرابکار','}} ',' ۲');
document.getElementById('wpSummary').value='برچسب';
break
case 3:
insertTags('{{جا:کپی مکنید|','}} ',' ');
break
case 4:
insertTags('{{جا:منبع مطالب|','}} ',' ');
break
case 5:
insertTags('{{جا:تبلیغ مکنید|','}} ',' ');
break
case 5:
insertTags('{{جا:امتحان}}','','');
break
}
}
/* گالری */
GalleryButton = "<a href=\"javascript:insertTags('\\n<gallery>\\n','\\n</gallery>',"
+ "'تصویر:PictureFileName.jpg|شرح\\nتصویر:PictureFileName.jpg|شرح');\"><img src=\""
+ "http://upload.wikimedia.org/wikibooks/fa/1/12/Button_gallery.png"
+ "\" title=\"گالری\"></a>";
/* اخطار نگاره */
ImgWarn = "<a href=\"javascript:document.editform.wpTextbox1.value='';"
+ "insertTags('{{جا:اخطار نگاره|','}}','نگاره');"
+ "void(document.getElementById('wpSummary').value='اخطار نگاره');\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/commons/e/ec/Button_aviso.png"
+ "\" title=\"اخطار نگاره\"></a>";
Spacer = " ";
NewRow = "<br />";
 
 
function InsertButtonsToToolBar(){
tooly = document.getElementById('toolbar');
if (tooly != null) {
tooly.innerHTML += toggleDirection+YKArabic+zwnj+nonS+Dig+Punc+STool+URLFIX;
tooly.innerHTML += Punc+ChapChin+SareSatr+UpperText+LowerText+RedirectButton;
tooly.innerHTML += labelCombo+labelCombo2+InterW+GregYear+TableButton+GalleryButton+Welcome+ImgWarn+NoS2+PicSource+PicCopy+'<br \>'
}
}
 
RaastChin = "<a href=\"javascript:insertTags('<div dir=rtl>',"
+"'\\n</div>','متن نامه')\"><img src=\""
+ "http://upload.wikimedia.org/wikipedia/en/e/ea/Button_align_left.png"
+ "\" title=\"راست‌چین کردن متن نامه\"></a>";
 
function InsertButtonsToToolBar3(){
tooly = document.getElementById('mailheader');
if (tooly != null) {
var tbl = document.getElementsByTagName("table")[0];
var newRow = tbl.insertRow(3);
var newCell0 = newRow.insertCell(0);
var newCell1 = newRow.insertCell(1);
newCell0.innerHTML = '&nbsp;';
newCell1.innerHTML = '<div id="toolbar3">&nbsp;</div>';
tooly3 = document.getElementById('toolbar3');
tooly3.innerHTML = RaastChin;
}
}
 
addOnloadHook(InsertButtonsToToolBar);
addOnloadHook(InsertButtonsToToolBar3);
/*
 
 
//ابزاری از سنمار!
document.write('<script type="text/javascript" src="'
+ 'http://fa.wikipedia.org/w/index.php?title=کاربر:mardetanha/واگردانی.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
*/
 
function InsertLinkToNavBar()
{
tooly4 = document.getElementById('p-personal');
alert(tooly4);
div_DATA = tooly4.innerHTML;
var div_DATA_array = div_DATA.split('</UL>');
var newinnerHTML = div_DATA_array[0];
newinnerHTML = newinnerHTML + '<li id="pt-new-link-sub-page"><a href="/w/index.php?title=%D9%88%DB%8C%DA%98%D9%87%3APrefixindex&from=Taranet&namespace=2" title="زیرصفحه‌های من">زیرصفحه‌های من</a></li>';
newinnerHTML = newinnerHTML + '</UL>' + div_DATA_array[1];
tooly4.innerHTML = newinnerHTML;
}
 
function InsertLinkToNavBar0()
{
toolytemp = document.getElementById('list');
if (toolytemp == null)
{
tooly4 = document.getElementById('pt-logout');
tooly4.parentNode.setAttribute('id' , 'list')
}
objList = document.getElementById('list');
 
objList.innerHTML=objList.innerHTML+"<li><a href=javascript:createNewPage();>صفحه جدید</a></li><li><a href=/w/index.php?title=%D9%88%DB%8C%DA%98%D9%87%3APrefixindex&from=Taranet&namespace=2>زیرصفحه‌ ها</a></li>"
}
 
 
function InsertLinkToNavBar2()
{
linkobjListElement = document.createElement('a');
linkobjListElement.setAttribute('href','/w/index.php?title=%D9%88%DB%8C%DA%98%D9%87%3APrefixindex&from=Taranet&namespace=2');
linkobjListElement.setAttribute('innerText','زیرصفحه‌ ها')
 
toolytemp = document.getElementById('list');
if (toolytemp == null)
{
tooly4 = document.getElementById('pt-logout');
tooly4.parentNode.setAttribute('id' , 'list')
}
 
objList = document.getElementById('list');
objListElement = document.createElement('li');
objListElement.appendChild(linkobjListElement);
objList.appendChild(objListElement);
}
 
function createNewPage()
{
var yPageName ='' + prompt ("لطفاً نام مقاله را وارد کنيد?","");
if ( yPageName == "null" || yPageName.length == 0 )
{
} else {
location.href = 'http://fa.wikipedia.org/w/index.php?action=edit&preload=&editintro=&title=' + yPageName;
}
}
 
function InsertLinkToNavBar3()
{
linkobjListElement = document.createElement('a');
linkobjListElement.setAttribute('href','javascript:createNewPage();');
linkobjListElement.setAttribute('innerText','صفحه جدید')
 
toolytemp = document.getElementById('list');
if (toolytemp == null)
{
tooly4 = document.getElementById('pt-logout');
tooly4.parentNode.setAttribute('id' , 'list')
}
 
objList = document.getElementById('list');
objListElement = document.createElement('li');
objListElement.appendChild(linkobjListElement);
objList.appendChild(objListElement);
}
 
addOnloadHook(InsertLinkToNavBar0);
 
//addOnloadHook(InsertLinkToNavBar2);
 
//addOnloadHook(InsertLinkToNavBar3);
 
 
//</pre>
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//پس از من: شروع
//اين اسکريپت يک دکمه به بالاي صفحات ويکي‌پديا اظافه مي‌کند که اگر آن را بفشاريد
//تفاوت بين آخرين ويرايشي که شما انجام داده‌ايد با تمام ويرايش‌هاي بعد از آن را نمايش مي‌دهد
//From http://en.wikipedia.org/w/index.php?title=User:JesseW/monobook.js&oldid=20755510
//& From Wikipedia:WikiProject User scripts/Scripts/Changes since I last edited
function addSinceTab() {
if (window.location.href.indexOf("&action=history&gotosince=true")!=-1) {
do_since_I_last_edited()
}
else if (wgCanonicalNamespace != "Special") {
addPortletLink("p-cactions", "/w/index.php?title="+wgPageName+"&action=history&gotosince=true", 'پس از من', '', "نمايش تفاوت تمامي ويرايشات انجام شده با آخرين ويرايش من");
}
}
function do_since_I_last_edited() {
var csub=document.getElementById("contentSub");
var msg=document.createElement("p");
msg.appendChild(document.createTextNode
("در حال تجزيه و تحليل تاريخچه... لطفاً صبر کنيد..."));
msg.className="error";
csub.insertBefore(msg, csub.firstChild)
var username=document.getElementById("pt-userpage").textContent;
var hists=document.getElementById("pagehistory").getElementsByTagName('li');
for (n=0;n<hists.length;n++) {
if (hists[n].getElementsByTagName("span")[0].getElementsByTagName('a')[0].textContent==username) {
document.location=hists[n].childNodes[1].href;
return;
}
}
msg.replaceChild(document.createTextNode
("شما اين صفحه را ويرايش نکرده‌ ايد! (اخيراً)"),
msg.firstChild);
}
addOnloadHook(addSinceTab);
//پس از من:پايان
/////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
// [[en:User:Lupin/popups.js]]
document.write('<script type="text/javascript" src="'
+ 'http://fa.wikipedia.org/w/index.php?title=User:mardetanha/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//////////////////////////////////////////////////////////////////////////////////////////////////////////////