A Chrome extension that allows you to quickly send the current page URL, title, and custom messages to Discord or Slack webhooks with a simple click.
👀 Demo
✨ Features
- Webhook Support: Store and manage Discord and Slack webhook URLs
- Current Page Integration: Automatically includes current page title and URL in messages
- Context Menu Integration: Right-click on any page to quickly access the extension
🚀 Quick Start
Prerequisites
- Node.js 18+ and npm
- Google Chrome browser
Development Setup
-
Clone the repository
git clone https://github.com/NKMAK/chrome-extension-webhook-sender.git cd chrome-extension-webhook-sender -
Install dependencies
-
Environment Setup
Create a
.envfile in the project root:# Storage key for webhook data in chrome.storage.sync VITE_WEBHOOK_STORAGE_KEY=webhook_sender_unique_keyVITE_WEBHOOK_STORAGE_KEY: Unique identifier for storing webhook data in Chrome's sync storage
-
Build the extension
-
Install extension locally in Chrome
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked" and select the
distfolder
- Open Chrome and navigate to
Development Server
The development server provides hot reload for faster development.
📖 How to Use
1. Setting Up Webhooks
- Click the extension icon in your browser toolbar
- Navigate to the "Settings" tab
- Add your webhook URLs:
- Discord
- Slack
- Give each webhook a descriptive name for easy identification
2. Sending Messages
-
Via Extension Popup:
- Click the extension icon
- Select your desired webhook from the dropdown
- Type your message
- Click "Send"
-
Via Context Menu:
- Select text on any webpage and right-click
- Choose "webhook-sender" from the context menu
- The extension will open with the selected text pre-filled in the message field
3. Message Format
Messages automatically include:
- Your custom message text
- Current page title
- Current page URL
Example output:
Your custom message here
Title: GitHub - NKMAK/chrome-extension-webhook-sender
URL: https://github.com/NKMAK/chrome-extension-webhook-sender
🛠 Tech Stack
- Framework: React 19 + TypeScript
- Build Tool: Vite + CRXJS (Chrome Extension plugin)
- UI Library: Chakra UI v3
- Extension API: Chrome Manifest V3
- Storage: chrome.storage.sync (syncs across devices)
🔧 Available Scripts
npm run dev- Start development server with hot reloadnpm run build- Build for productionnpm run lint- Run ESLintnpm run preview- Preview production build
🐛 Issues
open an issue on GitHub.