User:SilverLocust/sandbox.js: Difference between revisions

Content deleted Content added
index
Tag: Reverted
change edit summary
 
(2 intermediate revisions by the same user not shown)
Line 8:
protections: 'edit=extendedconfirmed|move=extendedconfirmed',
expiry: 'infinite',
reason: '[[WP:ARBECR|Arbitration enforcement]]: [[WP:PIA|Arab-Israeli conflict]]',
format: 'json'
},;
} else if(confirm(message)) {
protection;
api = new mw.Api();
prot = api.get({
action: 'query',
format: 'json',
prop: 'info',
titles: page,
inprop: 'protection'
}).query.pages[0].protection;
if (prot[0].level === 'sysop'
|| prot[0].level === 'extendedconfirmed'
|| prot[1].level === 'sysop'
|| prot[1].level === 'extendedconfirmed') {
} else if(confirm(message)) {
api.postWithToken( 'csrf', params );
}