MCPcopy Index your code
hub / github.com/ejfn/send-to-webhook

github.com/ejfn/send-to-webhook @v2.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.0 ↗ · + Follow
13 symbols 27 edges 3 files 0 documented · 0% updated 5mo agov2.0.0 · 2025-07-26★ 52
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Send To WebHook

A Chrome Extension to send links, images, or selected text to configurable webhooks. View on Chrome Web Store

How to Configure

Configure your webhooks to quickly send page information to predefined endpoints. Each webhook configuration includes the following fields: * Webhook Name: A descriptive name for your webhook (e.g., "My Slack Channel", "Bitrise iOS Upload"). This name will appear in the extension's popup menu.

  • Document URL Patterns: (Optional) One pattern per line. Use this to restrict when the webhook appears. The webhook will only be available on pages whose URLs match one of these patterns. For details on pattern format, refer to Match Patterns.

  • Target URL Patterns: (Optional) One pattern per line. Similar to Document URL Patterns, but applies when you right-click on a link or image. The webhook will only be available for links or images whose URLs match one of these patterns. If not provided, the webhook will apply to selected text. For details on pattern format, refer to Match Patterns.

  • HTTP Method: Choose the HTTP method for the request: POST (for sending data) or GET (for retrieving data). Defaults to POST.

  • Webhook Endpoint URL: The full URL of the target endpoint where the data will be sent (e.g., https://hooks.slack.com/services/...).

  • Request Body (JSON): (Optional) Define the request body as a JSON object or a plain string. You can use the following placeholders to dynamically insert content:

    • {{content}}: Inserts the selected text, link URL, image URL, or current page URL/title depending on the context.
    • {{isoDateTime}}: Inserts the current date and time in ISO format.
    • {{localDateTime}}: Inserts the current date and time in locale format.

    Example JSON body with templates: json { "content": "{{content}}", "isoDate": "{{isoDateTime}}", "localeDate": "{{localDateTime}}" }

  • Request Headers: (Optional) Add custom HTTP headers as key-value pairs. Click "Add Header" to add new fields, and "Remove" to delete them.

Examples

Example 1: Send selected text to Slack

  • Webhook Name: MySlack#random
  • Document URL Patterns: (empty)
  • Target URL Patterns: (empty)
  • HTTP Method: POST
  • Webhook Endpoint URL: <YOUR-SLACK-CHANNELS-INCOMING-WEBHOOK-URL>
  • Request Body (JSON): json { "selectedText": "{{content}}" }
  • Request Headers: (empty)

Example 2: Bitrise iOS Upload

  • Webhook Name: Bitrise iOS Upload
  • Document URL Patterns: (empty)
  • Target URL Patterns: https://*.amazonaws.com/ios%2F%40username%2Ftestapp-*-archive.ipa
  • HTTP Method: POST
  • Webhook Endpoint URL: https://app.bitrise.io/app/xxxxxxxxxx/build/start.json
  • Request Body (JSON): json { "hook_info": { "type": "bitrise", "api_token": "<BITRISE_API_TOKEN>" }, "build_params": { "workflow_id": "ios" }, "environments": [ { "mapped_to": "IPA_URL", "value": "{{content}}", "is_expand": true } ], "triggered_by": "send-to-webhook" }
  • Request Headers: (empty)

What's New

Date Description
2025-07-26 Upgraded to Manifest V3. Improved UI/UX for options page with form-based editor and dynamic header fields. Removed Google Analytics.
2022-08-10 Allow http headers to be set in the request
2018-06-02 Add ability to send arbitrary text
2018-05-29 First published

Extension points exported contracts — how you extend this code

StoredData (Interface)
(no doc)
src/typings.d.ts
WebHook (Interface)
(no doc)
src/typings.d.ts
WebHookAction (Interface)
(no doc)
src/typings.d.ts

Core symbols most depended-on inside this repo

render
called by 8
src/options.ts
setBrowserIcon
called by 6
src/background.ts
escapeJsonValue
called by 1
src/background.ts
sendWebhook
called by 1
src/background.ts
loadConfig
called by 1
src/options.ts
removeWebhook
called by 1
src/options.ts
addHeader
called by 1
src/options.ts
removeHeader
called by 1
src/options.ts

Shape

Function 10
Interface 3

Languages

TypeScript100%

Modules by API surface

src/options.ts7 symbols
src/typings.d.ts3 symbols
src/background.ts3 symbols

For agents

$ claude mcp add send-to-webhook \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page