User:Xbony2/common/qedit.js

/** * Adds a "QEdit" toolbar item which allows for various quick edits. Currently a WIP mess. Just automatically adds an about currently. * * @author User:Xbony2 * */ mw.loader.localLoad("User:Xbony2/edit.js"); $('#ca-purge').after('QEdit');

$('#ca-qedit').click(function{	mw.Api.prototype.edit(mw.config.get('wgPageName'), function(revision){ return { text: ' Lua error in Module:BonyUtils at line 6: attempt to concatenate local 'title' (a nil value). \n' + revision.content, summary: 'Automatically added Template:About using QEdit.' };	}); });