Skip to content

Instantly share code, notes, and snippets.

View lucasquin's full-sized avatar
:electron:
Improving

Lucas Lopes lucasquin

:electron:
Improving
View GitHub Profile
@lucasquin
lucasquin / list_users_discord_server.js
Last active September 13, 2024 14:36
List the users of a Discord server
function extractAndProcessNames(xpath) {
const results = new Set();
const xpathResult = document.evaluate(
xpath,
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null
);