User:MusikAnimal/userRightsManager.js: Difference between revisions

Content deleted Content added
No edit summary
replace(/ /g, '_') where needed
Line 201:
action: 'userrights',
format: 'json',
user: userName.replace(/ /g, '_'),
add: permissionNames[permission],
reason: summary + '; ' + permaLink
Line 209:
function markAsDone(closingRemarks) {
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', {
Line 223:
function issueTemplate(watch) {
console.log('Issuing template');
var talkPage = 'User talk:' + userName.replace(/ /g, '_');
return api.postWithToken( 'edit', {
format: 'json',