From 290d831cd47f7218db9d81adae4e3a33702b1522 Mon Sep 17 00:00:00 2001 From: TheGlitching <77061501+TheGlitching@users.noreply.github.com> Date: Fri, 31 Jul 2026 11:11:47 +0200 Subject: [PATCH] feat(extension): add Slack to enabled domains by default --- README.md | 22 +++++++++---------- src/settings.ts | 3 ++- test/content.test.ts | 50 +++++++++++++++++++++++++++++++++++++++++++ test/settings.test.ts | 18 ++++++++++++---- 4 files changed, 77 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 590464a..efb7fee 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ It keeps the workflow inside the editor you are already using and calls the mode 1. Install Simple Words from the [Chrome Web Store](https://chromewebstore.google.com/detail/simple-words/kmlhfcjpmhcoclpcghckibfkgpfbjfbb). 2. Use the options page that opens after install to choose a model provider. -3. Write a rough reply in Gmail, Outlook, Yahoo Mail, iCloud Mail, Proton Mail, or another enabled domain. +3. Write a rough reply in Gmail, Outlook, Yahoo Mail, iCloud Mail, Proton Mail, Slack, or another enabled domain. 4. Click **Simple Words**, review the refined draft, then click **Replace draft**. ## Install @@ -137,16 +137,16 @@ If the button or panel disappears after the extension reloads or updates while a Simple Words stores configuration in `chrome.storage.local`. There is no hosted Simple Words backend in the request path. -| Setting | Default | -| --------------- | ------------------------------------------------------------------------------------------------------------- | -| Provider | `openai` | -| OpenAI base URL | `https://api.openai.com/v1` | -| OpenAI model | `gpt-5.5` | -| Codex base URL | `https://chatgpt.com/backend-api/codex` | -| Codex model | `gpt-5.5-fast` | -| Ollama base URL | `http://localhost:11434/v1` | -| Ollama model | `gemma4` | -| Enabled domains | `mail.google.com`, `outlook.live.com`, `outlook.office.com`, `mail.yahoo.com`, `icloud.com`, `mail.proton.me` | +| Setting | Default | +| --------------- | ------------------------------------------------------------------------------------------------------------------------------ | +| Provider | `openai` | +| OpenAI base URL | `https://api.openai.com/v1` | +| OpenAI model | `gpt-5.5` | +| Codex base URL | `https://chatgpt.com/backend-api/codex` | +| Codex model | `gpt-5.5-fast` | +| Ollama base URL | `http://localhost:11434/v1` | +| Ollama model | `gemma4` | +| Enabled domains | `mail.google.com`, `outlook.live.com`, `outlook.office.com`, `mail.yahoo.com`, `icloud.com`, `mail.proton.me`, `app.slack.com` | ## Development diff --git a/src/settings.ts b/src/settings.ts index e92bd2f..36c773a 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -38,7 +38,8 @@ export const DEFAULT_ENABLED_DOMAINS = [ 'outlook.office.com', 'mail.yahoo.com', 'icloud.com', - 'mail.proton.me' + 'mail.proton.me', + 'app.slack.com' ] export const DEFAULT_SETTINGS: SimpleWordsSettings = { diff --git a/test/content.test.ts b/test/content.test.ts index 39ff68d..32de68e 100644 --- a/test/content.test.ts +++ b/test/content.test.ts @@ -1167,4 +1167,54 @@ describe('content script button visibility', () => { }) ) }) + + test('attaches to a Quill composer without following its off-screen clipboard node', () => { + document.body.innerHTML = ` +
hey
can you take a look