More languages
More actions
m (Attempting to trigger message only at a specific page) |
m (Testing user-specific message (only for sysops)) |
||
Line 1: | Line 1: | ||
$(function() { | $(function() { | ||
if (mw.config.get('wgPageName') == 'Special:ConfirmAccounts/authors') { | if (mw.config.get('wgPageName') == 'Special:ConfirmAccounts/authors') { | ||
if (mw.config.get('wgUserGroups').includes('sysop')) { | |||
console.log("page name: " + mw.config.get('wgPageName')); | |||
} | |||
} | } | ||
}); | }); |