User:DannyS712/common.js

mw.loader.load('//www.mediawiki.org/w/index.php?title=User:DannyS712/translate.js&action=raw&ctype=text/javascript');

window.deletePage = function( title, reason ){ var poster = { action: 'delete', title: title, reason: reason };   new mw.Api.postWithEditToken(poster ).done( function ( response ) {		console.log( response );    } ); };