Content deleted Content added
Polygnotus (talk | contribs) No edit summary |
Polygnotus (talk | contribs) No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 183:
checkButton.setLabel('Checking...');
const
const errors = [];
Line 199:
try {
const editCount = await getUserEditCount(userInfo.username);
original: userInfo.original,
username: userInfo.username,
editCount: editCount
});
console.log(`✓ ${userInfo.username}: ${editCount.toLocaleString()} edits`);
} catch (error) {
console.error(`Failed to get edit count for ${userInfo.username}:`, error);
original: userInfo.original,
username: userInfo.username,
editCount: 0,
error: true
});
errors.push(userInfo.username);
}
Line 212 ⟶ 221:
}
}
// Sort by edit count (highest first)
userResults.sort((a, b) => b.editCount - a.editCount);
// Update UI with completion
Line 220 ⟶ 232:
copyButton.setDisabled(false);
// Display results (just usernames, but ordered by edit count)
const sortedUsernames = userResults.map(result => result.original);
outputField.setValue(
console.log("\n=== EDIT COUNT RESULTS (sorted by edit count) ===");
if (result.error) {
console.log(`${result.original}: ERROR`);
} else {
console.log(`${result.original}: ${result.editCount.toLocaleString()} edits`);
}
});
if (errors.length > 0) {
Line 407 ⟶ 426:
.editcount-dialog .oo-ui-window-body {
font-family: sans-serif;
height:
}
.editcount-dialog .oo-ui-window-frame {
height:
}
.editcount-input textarea,
|