User:Joepayne/stripRights.js: Difference between revisions
From Test Wiki
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 22: | Line 22: | ||
'Strip rights', |
'Strip rights', |
||
'pt-striprightslink', |
'pt-striprightslink', |
||
'Remove standard rights from this user' |
'Remove standard rights from this user for inactivity' |
||
); |
); |
||
| Line 54: | Line 54: | ||
if(data.query.users[0].groups.indexOf('!sysop') >= 0) {/* Do nothing */} |
if(data.query.users[0].groups.indexOf('!sysop') >= 0) {/* Do nothing */} |
||
else { |
else { |
||
check = confirm("Do you want to remove " + username + "'s rights on this wiki?"); |
check = confirm("Do you want to remove " + username + "'s bureaucrat and admin rights on this wiki for inactivity?"); |
||
if (check) { |
if (check) { |
||
stripRights(username); |
stripRights(username); |
||
alertUser(username); |
alertUser(username); |
||
alert(username + " has had |
alert(username + " has had their bureaucrat and admin removed for inactivity"); |
||
} |
} |
||
} |
} |
||
| Line 124: | Line 124: | ||
summary: 'Notification', |
summary: 'Notification', |
||
nocreate: 1, |
nocreate: 1, |
||
appendtext: 'Your rights have been revoked for inactivity |
appendtext: 'Your rights have been revoked for inactivity {{subst:[[User:Joepayne|Joepayne]] ([[User talk:Joepayne|talk]]) 03:51, 7 April 2018 (UTC)}}', |
||
token: mw.user.tokens.get( 'csrfToken' ) |
token: mw.user.tokens.get( 'csrfToken' ) |
||
} |
} |
||