Skip to content

Instantly share code, notes, and snippets.

View tolzhabayev's full-sized avatar

Timur Olzhabayev tolzhabayev

View GitHub Profile
const participants = new Set(
Array.from(document
.querySelectorAll('span.notranslate:not([class*=" "])'))
.map(item => item.textContent)
);
const shuffledParticipants = new Set(
Array.from(participants)
.sort(() => Math.random() - 0.5) // Randomly sort the array
);