Content deleted Content added
Polygnotus (talk | contribs) ←Created page with '// <nowiki> // ExtendedConfirmedChecker.js // Adds indicators next to usernames on talk pages showing extended confirmed status // License: MIT $(function() { 'use strict'; // Only run on talk pages if (!mw.config.get('wgNamespaceNumber') % 2 === 1) { return; } const processedUsers = new Set(); const userGroups = new Map(); // Find all user links in signatures function findUserLinks() { return $('a...' |
Polygnotus (talk | contribs) No edit summary |
||
Line 8:
// Only run on talk pages
console.log('Current namespace:', namespace);
if (namespace % 2 !== 1) {
console.log('Not a talk page, exiting');
return;
}
console.log('Running on talk page');
const processedUsers = new Set();
Line 17 ⟶ 21:
// Find all user links in signatures
function findUserLinks() {
console.log('Found user links:', links.length);
links.each((_, link) => console.log('User link:', $(link).text()));
return links;
}
Line 76 ⟶ 83:
// Main processing function
async function processPage() {
console.log('Processing page...');
const userLinks = findUserLinks();
const batchSize = 50;
|