-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathUserRightsDiff.js
More file actions
23 lines (13 loc) · 1.06 KB
/
Copy pathUserRightsDiff.js
File metadata and controls
23 lines (13 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// <nowiki>
/*
A typical user rights log entry might look like this:
11:29, August 24, 2021 ExampleUser1 talk contribs changed group membership for ExampleUser2 from edit filter helper, autopatrolled, extended confirmed user, page mover, new page reviewer, pending changes reviewer, rollbacker and template editor to autopatrolled, extended confirmed user, pending changes reviewer and rollbacker (inactive 1+ years. should you return and require access again please see WP:PERM) (thank)
What the heck perms were removed? Hard to tell right? This user script adds a "DIFF" of the perms that were added or removed, on its own line, and highlights it green for added, yellow for removed.
[ADDED template editor] [REMOVED edit filter helper, patroller]
This script works in Special:UserRights, in watchlists, and when clicking "rights" in the user script User:BradV/Scripts/SuperLinks.js
*/
const { UserRightsDiffHtmlProcessor } = require( './modules/UserRightsDiffHtmlProcessor.js' );
$( () => {
( new UserRightsDiffHtmlProcessor( $, mw ) ).execute();
} );
// </nowiki>