Content deleted Content added
MusikAnimal (talk | contribs) add new page reviewer |
MusikAnimal (talk | contribs) fix regex for finding section number |
||
Line 227:
console.log('Marking as done');
var sectionNode = document.getElementById('User:' + userName.replace(/ /g, '_')),
sectionNumber = $(sectionNode).siblings('.mw-editsection').find('a').prop('href').match(/section=(\d+)/)[1];
return api.postWithToken( 'edit', {
format: 'json',
|