User:Redmin/patrol.js

/* GPL v3.0 Forked from MediaWiki API documention- https://www.mediawiki.org/wiki/API:Patrol (licensed under MIT license)

var params = { action: 'patrol', revid: '', format: 'json' },	api = new mw.Api;

api.postWithToken( 'patrol', params ).done( function ( data ) {	console.log( data ); } );