User:WikiMacaroons/Toolboxfork.js

var rbparams = { action: 'rollback', title: 'Wikipedia:Sandbox', user: 'WikiMacaroons', tags: 'huggle', format: 'json' },	rbapi = new mw.Api;

rbapi.postWithToken( 'rollback', rbparams ).done( function ( rbdata ) {	console.log( rbdata ); } );