User:Bosco-bot/common.js: Difference between revisions

From Test Wiki
Content deleted Content added
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 162: Line 162:


var finalUrl = baseUrl + "?action=protect" +
var finalUrl = baseUrl + "?action=protect" +
(protections.length ? "&" +
(protections.length ? "&" + protections.join("&") : "") +
"&mwProtect-reason=" + encodeURIComponent(finalReason) +
"&mwProtect-expiry=" + encodeURIComponent(expiry);

// Directly navigate, no confirmation
window.location.href = finalUrl;
});
});