CB Quick Silence

Pulls auto-silence usernames + trigger words from Supabase periodically. CSP-safe via GM_xmlhttpRequest. Adds Silence button (if mod), auto-silences or highlights. SPA-safe. Includes a menu to view DB auto-silenced users.

Author
imarawn
Daily installs
0
Total installs
5
Ratings
0 0 0
Version
2.2.0
Created
2025-08-24
Updated
2025-09-13
Size
22.6 KB
License
CC-BY-NC-SA-4.0
Applies to

CB Quick Silence — Supabase Sync

Adds a Silence button (if you are mod), and automatically silences or highlights messages based on usernames and trigger words.
Uses a global Supabase table (maintained by the script author), so you don’t need to update lists manually.
Optionally, you can point the script to your own Supabase tables if you prefer full control.


📌 What this script does

  • Adds a “Silence” button to every chat message in Chaturbate rooms (if you’re a mod/broadcaster).
  • Auto-silences specific usernames (global list, updated via Supabase).
  • Highlights suspicious messages if you’re not a mod.
  • Periodically syncs usernames & trigger words from a global Supabase table → no need to update manually.
  • Shows a small toast notification for every action (success/fail/sync).

⚙️ How it works

  • On entering a room, the script checks if you are privileged (mod or broadcaster).
  • Loads usernames and trigger words from Supabase.
  • Every new chat message is scanned:
    • If privileged + match → auto-silence (sends a POST with CSRF headers).
    • If not privileged + match → highlight (orange/red background).
  • A red Silence button is injected next to each username (if enabled).
  • Background sync runs every 60s (configurable).

✨ Features

  • Auto-Silence: instantly silence matching users if you’re mod
  • Highlighting: mark matching messages if you’re not mod
  • Silence Button: one-click moderation button next to usernames
  • Dynamic Lists: usernames & trigger words pulled periodically from Supabase
  • Tampermonkey Menu: toggle features, set polling interval, force sync
  • CSP-safe: uses GM_xmlhttpRequest with @connect permissions

🖥️ Requirements

  • A userscript manager:
    • Tampermonkey (recommended)
    • Violentmonkey (may require extra config for @connect)

🔧 Installation

  1. Install a userscript manager (Tampermonkey recommended).
  2. Click Install this script on SleazyFork.
  3. Open any Chaturbate room with chat.
  4. You’ll see:
    • A red Silence button next to usernames.
    • Automatic silencing/highlighting based on global Supabase lists.
    • Menu options under Tampermonkey to toggle features & set sync interval.

🌍 Global Supabase Tables (default)

This script already connects to a shared Supabase project that contains:

  • auto_silence_users → list of usernames to silence
  • trigger_words → list of words to watch

That means:

  • Everyone using this script automatically benefits from updates.
  • You don’t have to maintain or edit anything.

🛠️ Optional: Run Your Own Tables

You can connect your own private Database, if you create an own Supabase project and change the URL and API-Key.


📜 Notes

  • Uses @noframes so it won’t inject inside ads or video iframes.
  • CSP-safe: network requests use GM_xmlhttpRequest with @connect *.supabase.co.
  • Default config uses a global shared Supabase database (maintained by the author).
  • Optional: advanced users can set their own Supabase project.
  • Does not collect or send any data outside of Chaturbate or the chosen Supabase project.

🪪 License

Licensed under CC-BY-NC-SA 4.0

  • Free to use and share.
  • Non-commercial use only (you may not sell this script).
  • Derivatives must keep the same license and credit the author.