Content deleted Content added
SilverLocust (talk | contribs) m SilverLocust moved page User:SilverLocust/sandbox10 to User:SilverLocust/sandbox7 without leaving a redirect: missed number 7 Tags: Mobile edit Mobile web edit Advanced mobile edit |
SilverLocust (talk | contribs) change edit summary |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1:
$(".protect-button").on('click', function(e) {
e.preventDefault();
var page = this.innerText,
message = 'Protect ' + page + '?',
params = {
action: 'protect',
title: page,
protections: 'edit=extendedconfirmed|move=extendedconfirmed',
expiry: 'infinite',
reason: '[[WP:ARBECR|Arbitration enforcement]]: [[WP:PIA|Arab-Israeli conflict]]',
format: 'json'
};
if(confirm(message)) {
api = new mw.Api();
api.postWithToken( 'csrf', params );
}
});
|