Conscience Stream (Global in-browser chat)

Slide out menu with Ctrl+Shift+;, username support using GM storage, colored usernames, basic emotes, bottom-aligned chat

作者
JustDaile
日安装量
1
总安装量
1
评分
0 0 0
版本
1.4
创建于
2025-09-16
更新于
2025-09-17
大小
70.3 KB
许可证
暂无
适用于
所有网站

Conscience Stream – Global Browser Chat

A polished, bottom‑aligned, slide‑out chat panel you can summon on (Ctrl + Shift + ;) on any site. It talks to a simple Go backend (HTTP polling) and adds modern chat niceties: reactions, emoji picker, slash commands, notifications, offline queueing, and smart auto‑scroll behavior.

Key Features

Hotkey toggle: Press Ctrl + Shift + ; to open or close the panel (works across most layouts). Bottom‑anchored message list with intelligent auto‑scroll (stays put if you scroll up, resumes when you’re idle or at bottom). Offline send queue: Messages you send while disconnected are queued, visibly marked, and auto‑flushed when connectivity returns. Single‑line composer with: Emoji insertion palette Send button + Enter to send (Shift+Enter adds a newline if you re‑enable multiline later) Slash commands: /help – quick command reference /me – action / emote style messages /shrug – appends ¯(ツ)/¯ /rainbow – temporary animated gradient effect on your outgoing bubbles Reactions: Hover a message to reveal a + button; add one emoji. Switching reactions replaces your previous one (enforces single reaction per user per message). Mention highlighting: @username is styled; your own name pops with a stronger highlight. Username customization with persisted storage (GM storage). Gradient username bubble backgrounds for others; your own bubbles distinct. Presence approximation: Shows an estimated active user count (last 3 minutes of message timestamps) — no tracking beacon required. Desktop toasts (optional) for new messages when panel is closed. Notification sound with throttle (prevents rapid spam). Reduced motion mode toggle (eliminates animations and smooth scroll). Self‑message detection heuristic prevents duplicate notification when the server echoes your message. Action message when you change your username (broadcast so others see it). Graceful handling of reaction updates and edited reaction states (ModifiedAt timestamp polling). Clean, high‑contrast dark UI with subtle glassy blur and responsive layout.

Installation

  1. Install Tampermonkey or Violentmonkey.
  2. Click “Install” on GreasyFork (or paste script).
  3. (Optional) Set window.TM_CHAT_BACKEND if you run your own server.
  4. Press Ctrl + Shift + ; to open the panel anywhere.

Permissions & Why

@grant GM.addStyle – Inject component styles without polluting page CSS permanently. @grant GM.setValue / GM.getValue – Persist your username & preference toggles. @grant GM.xmlHttpRequest & @connect * – Cross‑origin polling + posting to the chat backend. You can tighten @connect to your host if you self‑host (e.g. @connect your-chat.example.com). No analytics, tracking pixels, or external CDNs are used by the script itself.

Status / Toast Notifications

Toasts appear bottom-right only if the panel is closed. Sound is throttled (min 4s gap). You can toggle both visuals and sound in settings (gear icon in panel).

Settings

Accessible via the gear icon:

  • Show pop-up notifications
  • Play sound
  • Show startup hint
  • Reduced motion
  • All persist per browser profile.

Disclaimer

This is an early-stage experimental chat overlay. There is no SSL, messages are not kept, IP's are not logged.