کاربر:BGlobule/subpageCreator.js

Shift را نگه دارید و روی دکمهٔ Reload در نوار ابزار مرورگر کلیک کنید. برای آگاهی از جزئیات و نحوهٔ پاک‌سازی حافظهٔ نهانی سایر مرورگرها، صفحهٔ ویکی‌پدیا:میانگیر مرورگرتان را خالی کنید را ببینید.
//Created by Yahya//Please give feedback on [[User Talk:Yahya]]//See installation procedure on [[User:Yahya/scrips/SNA]](function() {    $(document).ready(function() {        mw.loader.using(['mediawiki.util'], function() {            {                var L = mw.util.addPortletLink("p-personal", "javascript:void(0)", "زیرصفحه", 'p-subpcr', 'ایجاد زیرصفحهٔ کاربری تازه', 'null', '#utcdate');                L.addEventListener("click", subpage);                var M = mw.util.addPortletLink("p-personal", "javascript:void(0)", "مقاله", 'p-artcr', 'ایجاد مقالهٔ تازه', 'null', '#p-subpcr');                M.addEventListener("click", article);                var C = mw.util.addPortletLink("p-personal", "javascript:void(0)", "رده", 'p-catcr', 'ایجاد ردهٔ تازه', 'null', '#p-artcr');                C.addEventListener("click", category);                var T = mw.util.addPortletLink("p-personal", "javascript:void(0)", "الگو", 'p-tempcr', 'ایجاد الگوی تازه', 'null', '#p-catcr');                T.addEventListener("click", template);                return;            }        });    });}());function subpage() {    var user = mw.config.get("wgUserName");    var subp = prompt("عنوان زیرصفحه؟");    switch (subp) {        case null:        case undefined:        case '':            //Do nothing            break;        default:            {                window.open('/w/index.php?preload=Special:New_page&editintro=&title=کاربر:' + user + '/' + subp + '&action=edit', '_blank');            }    }}function article() {    var art = prompt("عنوان مقاله؟");    switch (art) {        case null:        case undefined:        case '':            //Do nothing            break;        default:            {                window.open('/w/index.php?title=' + art + '&action=edit', '_blank');            }    }}function category() {    var cat = prompt("عنوان رده؟");    switch (cat) {        case null:        case undefined:        case '':            //Do nothing            break;        default:            {                window.open('/w/index.php?title=' + ((cat.indexOf('رده:') > -1) ? '' : 'رده:') + cat + '&action=edit', '_blank');            }    }}function template() {    var temp = prompt("عنوان الگو؟");    switch (temp) {        case null:        case undefined:        case '':            //Do nothing            break;        default:            {                window.open('/w/index.php?title=' + ((temp.indexOf('الگو:') > -1) ? '' : 'الگو:') + temp + '&action=edit', '_blank');            }    }}