User:DannyS712/EFFPRH/sandbox.js: Difference between revisions

Content deleted Content added
link to section in edit summary
m clean up debug logging
Line 7:
 
EFFPRH.config = {
debug: true,
version: '0-dev'
};
Line 20 ⟶ 21:
 
EFFPRH.run = function () {
console.log( 'EFFPRH - running' );
EFFPRH.addStyle();
// Add links to each section to open a dialog
Line 235:
}
responseText += ' --~~~~';
console.log( 'Should respond: ', sectionNum, responseText );
const editParams = {
action: 'edit',
Line 248 ⟶ 247:
assertuser: mw.config.get( 'wgUserName' )
};
if ( EFFPRH.config.debug ) {
console.log( { ...editParams } );
}
new mw.Api().postWithEditToken( editParams )
.then(