burakuro-js

Extra JavaScript for the cytu.be channel burakuro.

File What it is
burakuro-extra.js The WHOLE channel script. cytu.be loads it from Channel settings → General settings → External Javascript: https://nostramadeus.github.io/burakuro-js/burakuro-extra.js. Built by tools/build.mjs.
channel-js.js What goes in Channel settings → Edit → JavaScript: only a pointer comment.
sounds/ Sound files for the sound emotes (Japanese voice clips, 1 to 4 s each).
emotes/ Pictures for the 10 Black Clover emotes the sound names borrow.
backup/ The channel JavaScript and CSS as they were live on 2026-11-07. Paste the JS back into Edit → JavaScript (and clear External Javascript) to undo.

What the script does

Sounds

Type in chat Picture Sound
/doroclapsound /doroclap clapping
/laughsound /laugh laugh
/yamitakeabreaksound /yamitakeabreak Yami: “You look like you need a break”
/yamisurpassyourlimitssound /yamisurpassyourlimits Yami: “You’ve gotta break past your limits, that’s the only way!”
/yamilaughwahahasound /yamilaughwahaha Yami: “Wahahaha! What a blast!”
/astanevergivingupismymagicsound /astanevergivingupismymagic Asta: “I’ll never give up!”
/yunorepaidmydebtsound /yunorepaidmydebt Yuno: “I thought I’d finally returned the favor”
/lucklooksfunsound /lucklooksfun Luck: “Don’t finish yet, I’m having fun!”
/charmyimhungrysound /charmyimhungry Charmy: “I… I’m so hungry… Can’t move…”
/vanessaletsgodrinkingsound /vanessaletsgodrinking Vanessa: “Let’s have a drink!”
/mereoleonaleaveittomesound /mereoleonaleaveittome Mereoleona: “Leave it to me, Wizard King!”
/magnanotbadsound /magnanotbad Magna: “So cool!”
/charlottebadumpheartbeatsound /charlottescreaming Charlotte: “Ba-dump” (heartbeat)
/charlotteyyyamisound /charlotteyamiwallpin Charlotte: “Y-Y-Yami?!”

Adding a sound

  1. Put the mp3 in sounds/.
  2. Add one entry to the SOUNDS list in tools/build.mjs, run node tools/build.mjs, commit, push.

Tests

node tests/load-smoke.test.mjs (whole script loads, every part starts) and node tests/sound-play.test.mjs (sound play rules). Both use jsdom.

The “/” dropdown and sound emotes code comes from the wideamari channel script (https://github.com/Nostramadeus/wideamari-js); the playlist start times are “cytube times” by nuui and others.