User:JBW/sandbox4

// // @ts-check // Companion to markblocked - asynchronously marks locked users // Chunks borrowed from User:Krinkle/Scripts/CVNSimpleOverlay_wiki.js, // User:GeneralNotability/ip-ext-info.js, and MediaWiki:Gadget-markblocked.js /** * Get all userlinks on the page * * @param {JQuery} $content page contents * @return {Map} list of unique users on the page and their corresponding links */ function lockedUsers_getUsers($content) { const userLinks = new Map; // Get all aliases for user: & user_talk: (taken from markblocked) const userNS = []; for (const ns in mw.config.get( 'wgNamespaceIds' ) ) { if (mw.config.get('wgNamespaceIds')[ns] === 2 || mw.config.get('wgNamespaceIds')[ns] === 3) {