User:Polygnotus/Scripts/XC.js: Difference between revisions

Content deleted Content added
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...'
 
No edit summary
Line 8:
// Only run on talk pages
ifconst namespace = (!mw.config.get('wgNamespaceNumber') % 2 === 1) {;
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() {
returnconst links = $('a.mw-userlink:not([data-ec-checked]), a.mw-signature-link:not([data-ec-checked])');
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;