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