کاربر:Sicaspi/vector.js
ظاهر
کدهایی که در این صفحه قرار میدهید، ممکن است حاوی محتوای مخربی باشند که حساب کاربری شما را به خطر میاندازند. اگر با استفاده از دستور «importScript» یا الگوی «نصب اسکریپت کاربری» اسکریپتی را از صفحهای دیگر درونریزی میکنید، دقت داشتهباشید که این کار باعث میشود تا بهطور سیال اسکریپتی را بارگیری کنید که امکان تغییر آن توسط دیگران وجود دارد. اگر از امنیت کدهایی که به این صفحه میافزایید مطمئن نیستید، در قهوهخانهٔ فنی درخواست کمک کنید. هرگاه پیشنمایش تغییراتی که در این صفحه اعمال کردهاید را مشاهده کنید، کد اجرا خواهد شد. |
صفحهٔ همراه .css برای این پوسته در کاربر:Sicaspi/vector.css قرار دارد. |
//mw.loader.load('http://localhost/Gadget.js');
$('#ca-abar-abzar').hide();
$('#ca-history a').text('تاریخچه');
$('#ca-addsection a').text('+');
// no -- prefix for signature button
$( document ).ready(function () {
$("#mw-editbutton-signature").unbind("click").click(function() {insertTags('~~' + '~~')});
});
// shorten the "edit" tab label
$(function () {
$('li#ca-edit span a').text('ویرایش');
});
// don't collapse watchlist-details
$(function(){
$(".watchlist-details tr").css("display", "block").css("width", "100%");
});
// editzero
$(function () {
var x;
if (!(x = document.getElementById('ca-edit') )) return;
var url;
if (!(url = x.getElementsByTagName('a')[0] )) return;
if (!(url = url.href )) return;
var y = mw.util.addPortletLink('p-cactions', url+"§ion=0", 'ویرایش لید', 'ca-edit-0',
'ویرایش بخش آغازین صفحه', 'ویرایش لید', x.nextSibling);
y.className = x.className; // steal classes from the the edit tab...
x.className = 'istalk'; // ...and make the edit tab have no right margin
// exception: don't steal the "selected" class unless actually editing section 0:
if (/(^| )selected( |$)/.test(y.className)) {
if (!document.editform || !document.editform.wpSection
|| document.editform.wpSection.value != "0") {
y.className = y.className.replace(/(^| )selected( |$)/g, "$1");
x.className += ' selected';
}
}
y.style.marginLeft = '6px';
});
importScript('User:Huji/infobox.js');
importScript('User:Freshman404/DYKcheck.js'); //DYKcheck tool