[WordPress] 外掛分享: Chat for WebIRC

首頁外掛目錄 › Chat for WebIRC
全新外掛
安裝啟用
尚無評分
145 天前
最後更新
問題解決
WordPress 6.8+ PHP 8.2+ v0.8.1 上架:2025-11-17

內容簡介

總結文案:這個外掛提供一個簡潔的 IRC 客戶端短碼,使用純粹的 JavaScript 編寫。支援與 IRC 伺服器直接的 WebSocket 連接(符合 IRCv3 標準),並包括可選的 WebIRC 閘道。具有安全意識的設置,並提供多項功能如影像分享、客製頭像、智能影像處理等。

1. 這個外掛提供的是什麼功能?
- 影像分享
- 客製頭像
- 智能影像處理
- 記憶體效能優化
- 行動優先的影像上傳界面
- 現代響應式設計
- 行動體驗增強
- 可編輯的暱稱等功能

2. 這個外掛有哪些安全意識的預設設置?
- 伺服器允許清單
- 可選的 WebSocket 子協定
- 可選的 WS 路徑
- 可選的 CSP connect-src 助手
- 輸入清潔與驗證
- 正確的輸出逃逸

3. 這個外插支援哪些 IRC 相關功能?
- 所有 IRC 斜槓命令
- 自動暱稱產生與碰撞處理
- 偵錯記錄與連線狀態指示器
- 可選的內容安全政策 (CSP) 標頭生成

4. 在哪些方面這個外掛具有優勢?
- 輕量的 TypeScript / JavaScript 實現
- 完全響應式的設計與語意 HTML
- 國際化準備
- 可配置的伺服器允許清單
- WebSocket 子協定支援啟動
- 可選的 WebIRC 閘道回退

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.8.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Chat for WebIRC」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin provides a shortcode that renders a lightweight IRC client written in vanilla JavaScript. It supports direct WebSocket connections to IRC servers (IRCv3-friendly) and includes an optional WebIRC gateway.
Security-conscious defaults:

Server allow-list (host:port format), WSS (WebSockets over SSL/TLS) only
Optional WebSocket subprotocols (e.g., text.ircv3.net)
Optional WS path (e.g., /webirc)
Optional CSP connect-src helper (off by default)
Input sanitization and validation
Proper escaping of output

Features:

Image Sharing: Upload and share images directly in chat with drag-and-drop support
Custom Avatars: Personalized user avatars with upload, crop, and preview functionality
Smart Image Processing: Automatic optimization, resizing, and format conversion (WebP support)
Performance Optimized: Memory-efficient processing with caching and lazy loading
Mobile-First Images: Touch-friendly upload interface with responsive image display
Modern Responsive Design: Mobile-first approach with adaptive layouts for all screen sizes
Enhanced Mobile Experience: Touch-optimized interface with proper virtual keyboard support
Smart Responsive Behavior: Overlay sidebar on mobile, collapsible on tablet, side-by-side on desktop
Editable Username: Click-to-edit nickname with real-time validation and user persistence
User Persistence: Automatic nickname saving for logged-in WordPress users
Lightweight vanilla TypeScript/JavaScript implementation (no frameworks)
Fully responsive design with semantic HTML
Internationalization ready (i18n strings)
Configurable server allow-list with strict validation
WebSocket subprotocol support (IRCv3)
Optional WebIRC gateway fallback
Comprehensive IRC slash commands: 30+ commands including /join, /part, /nick, /msg, /whois, /topic, /away, /help, and more
Automatic nickname generation and collision handling
Debug logging and connection status indicators
Optional Content Security Policy (CSP) header generation
WordPress hooks and filters for extensibility
Follows WordPress Coding Standards

Usage
Basic Usage:
Simply add the shortcode [chat_webirc] to any page or post where you want the IRC chat to appear. The plugin will use secure default settings to connect to a test IRC server.
Shortcode Examples:
* Basic: [chat_webirc] – Uses default server and channel
* Custom channel: [chat_webirc channel="#mychannel"]
* Custom server: [chat_webirc server="irc.example.com:7443" channel="#general"]
Available IRC Commands:
Once the chat is loaded, users can use these commands:
Basic Commands:
* /join #channel – Join a channel
* /part [#channel] – Leave current or specified channel
* /nick newname – Change nickname
* /quit [message] – Disconnect
* /help – Show all available commands
Communication:
* /msg – Send private message
* /notice – Send notice message
* /me – Send action message
* /query – Open private chat context
User & Channel Info:
* /whois – Get detailed user information
* /who [channel] – List users in channel
* /list [pattern] – List available channels
* /names [channel] – List nicknames in channel
* /topic [text] – View/set channel topic
Status & Utility:
* /away [message] – Set away status
* /back – Remove away status
* /ping – Ping user
* /version [nick] – Get version info
Advanced Commands:
* /ctcp – Send CTCP command
* /motd [server] – View message of the day
* /stats [server] – View server statistics
* /raw – Send raw IRC command (if enabled)
Type /help in the chat for the complete command reference.
Configuration:
Go to Settings → Chat for WebIRC in your WordPress admin to customize servers, channels, and security options.
Notes

Some public IRC networks may restrict WebSocket connections to certain origins. The included test server permits connections for testing purposes.
Do not send sensitive information. This client is intentionally minimal and does not yet support SASL authentication.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon