LAPLACE Chatterbox integrates with the LAPLACE Chat dashboard: once enabled, clicking "Send as Danmaku" (作为弹幕发送) in a superchat's menu hands the text to an open tab of that bilibili live room in the same browser, which sends it as the logged-in account
Features
- Opt-in and synced across tabs: turn on Allow Dashboard to Send Danmaku via This Script under Settings → Feature Toggles → LAPLACE Chat Dashboard (off by default); toggling it syncs immediately across the dashboard and every live room tab in the same browser
- Same pipeline as Normal Send: relayed messages go through your enabled word replacement rules, split automatically at the room's length limit with 【】 wrapped around every segment, queue at manual priority alongside Normal Send, and retry with AI evasion on rejection when enabled
- Ordered without interleaving: superchats relayed back to back for the same room go through one room tab in sequence, so split segments from different superchats never interleave
- Automatic tab selection: when several tabs of the same live room are open, a tab already sending earlier relays keeps handling that room so they share one queue; otherwise Chatterbox prefers a visible tab, then the most recently active one, matching either the real room ID or short room ID
- Clean cancellation: turning the setting off, closing the dashboard tab, or letting a request time out stops remaining segments immediately, including before calling AI evasion
- Credentials stay in the browser: the dashboard and live room tabs communicate only through local userscript storage, so cookies and CSRF tokens never leave the live room tab; on dashboard sites Chatterbox adds no UI and leaves page network responses untouched
- Excluded from Copy Ninja: danmaku relayed from the dashboard are never broadcast to Copy Ninja mirror accounts
- Clean settings backups: exporting or importing settings under Settings → Import / Export Settings skips transient relay state keys so backups stay clean and active relays are not disturbed
Usage
- In any bilibili live room, click the "Live Assistant" floating button in the lower right corner and open Settings → Feature Toggles → LAPLACE Chat Dashboard
- Check Allow Dashboard to Send Danmaku via This Script
- Keep the target live room open and logged into bilibili in the same browser (relayed sends appear in the script log under the 「控制台」 prefix)
- Open the LAPLACE Chat dashboard and choose "Send as Danmaku" from a superchat's menu; the open live room tab splits and posts it automatically
Supported Sites and Privacy
To bridge the dashboard and your live room tabs via userscript storage, Chatterbox runs its page bridge on the following LAPLACE Chat hosts:
https://chat.laplace.live/*https://chat-dev.laplace.live/*https://chat.vrp.moe/*https://laplace.chat/*
On these pages, the userscript only answers status pings and relays send requests. It injects no buttons or panels and does not modify fetch or XHR responses. Your bilibili session cookies and CSRF tokens never leave the browser.
Notes
- Same browser and open live room required: the dashboard can only relay to a live room tab open and logged into bilibili in the same browser profile; otherwise the send returns
no-room-tabornot-logged-in - Keep the live room tab awake: browsers may freeze or discard background tabs, causing relayed sends to time out with
no-responseand stop remaining segments. If timeouts happen often, exemptlive.bilibili.comfrom your browser's memory saver - Length and concurrency limits: each send accepts up to 500 characters, and up to 10 requests may be in flight per dashboard tab at once; additional requests return
busy - Empty after replacement: if word replacement rules reduce the text to an empty string, the send fails immediately and returns the reason to the dashboard
- Not mirrored by Copy Ninja: dashboard relays use a separate internal source and are never broadcast by a Copy Ninja master to its mirrors
Developer Integration (SDK)
Developers connecting a web page to the Chatterbox page bridge can use the published @laplace.live/chatterbox-sdk package (protocol version 1):
For local testing against a custom dashboard, Chatterbox also recognizes localhost and 127.0.0.1, though they are not in the default @match list; add a user match rule in your userscript manager to enable the bridge locally
Quick Start
import { ChatterboxClient } from '@laplace.live/chatterbox-sdk'
const chatterbox = new ChatterboxClient()
const sendButton = document.querySelector<HTMLButtonElement>('#send')!
// null until Chatterbox announces itself on this page; sends before that settle as `unavailable`
chatterbox.onStatusChange(status => {
sendButton.hidden = status === null
})
chatterbox.connect()
sendButton.onclick = async () => {
const result = await chatterbox.send(21452505, '主播晚上好', {
wrapBrackets: true, // wraps each segment as 【主播晚上好】
onProgress: ({ sent, total }) => console.log(`${sent}/${total}`),
})
console.log(result.status, result.error)
}If you prefer speaking the window.postMessage protocol directly instead of using ChatterboxClient, import parseClientMessage and parseBridgeMessage to validate raw messages.
Send Statuses
| Status | Meaning |
|---|---|
sent | Every segment was sent successfully |
partial | Some segments succeeded and at least one was rejected by bilibili |
failed | No segments were sent (rejected by bilibili or empty after replacement rules) |
disabled | The dashboard relay setting is off, or was turned off / cancelled mid-send |
no-room-tab | No open live room tab in this browser matches the requested room ID |
no-response | The target live room tab closed, froze, or stopped answering |
not-logged-in | The target live room tab is not logged into bilibili |
busy | 10 requests are already queued or in flight from this page |
invalid | Invalid payload (such as empty text or more than 500 characters) or protocol mismatch |
unavailable | No compatible Chatterbox bridge announced itself, or the client disconnected |
Types Reference
ChatterboxStatus
Prop
Type
SendOptions
Prop
Type
SendProgress
Prop
Type
SendResult
Prop
Type
ChatterboxClientOptions
Prop
Type
Last updated on November 29, 2026