Skip to content

Instantly share code, notes, and snippets.

View LorenzoRamalho's full-sized avatar
🏮

Lorenzo Ramalho LorenzoRamalho

🏮
  • Argentina
View GitHub Profile
@LorenzoRamalho
LorenzoRamalho / streamlabs-chatbox_random-name-color.js
Last active May 6, 2022 17:15
Streamlabs Chatbox Custom JS for random username colors
Array.prototype.shuffle = function() {
return this.sort(() => Math.random() - 0.5);
}
// Random value to concat to name.
// Personal reason: due to relevant names matching the same indexed element.
// This might also make the following shuffle unnecessary.
const randomConcat = Math.random();
const nameColorOverrides = {