From df3dbdcb480a7701822ec00627b4e795545f99de Mon Sep 17 00:00:00 2001 From: Elliot Hopkins Date: Fri, 10 Apr 2026 13:59:44 -0700 Subject: [PATCH] Wire extension display name from config; generic Summarizer + AI chat copy - CONFIG.EXTENSION drives options title/shortcuts; remove duplicate version - Manifest name/description; popup branding and chat placeholder - AGENTS.md: name/version/shortcut maintenance notes - Console log tags [Summarizer]; build.sh comment --- AGENTS.md | 4 ++++ build.sh | 2 +- manifest-chrome.json | 4 ++-- manifest-firefox.json | 4 ++-- manifest.json | 4 ++-- options/options.html | 7 ++----- options/options.js | 18 ++++++++++++++++++ popup/popup.html | 4 ++-- popup/popup.js | 3 ++- scripts/background.js | 6 ++---- scripts/config.js | 19 ++++++++++++------- scripts/content.js | 6 +++--- 12 files changed, 52 insertions(+), 29 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 17af6dc..0eb0ba5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,3 +18,7 @@ This extension has separate manifests for Chrome and Firefox: ## Other Browser Differences Read BROWSER_SUPPORT.md for info. + +## Name, version, shortcuts +- **Version** lives in the active manifest (`version`) and any browser-specific manifest you ship. Do not duplicate it in `scripts/config.js`. +- **Display name and default shortcut copy** for the settings page come from `CONFIG.EXTENSION` (`NAME`, `SHORTCUT`, `SHORTCUT_MAC`), filled in `options/options.js`. When you change the extension **name** or **suggested keyboard shortcuts**, update the manifest **`name` / `commands`** and the same fields in **`CONFIG.EXTENSION`** so the options tab title and shortcut help stay accurate. diff --git a/build.sh b/build.sh index bb67ac5..12f1b73 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Build script for WebAI Summarizer +# Build script for the Summarizer extension # Usage: ./build.sh [chrome|firefox] BROWSER=${1:-chrome} diff --git a/manifest-chrome.json b/manifest-chrome.json index fb850ad..19daf96 100644 --- a/manifest-chrome.json +++ b/manifest-chrome.json @@ -1,8 +1,8 @@ { "manifest_version": 3, - "name": "WebAI Summarizer", + "name": "Summarizer", "version": "1.0.0", - "description": "Ask questions and summarize any webpage with AI", + "description": "Summarize any webpage and use AI chat about what you're reading", "permissions": [ "activeTab", "tabs", diff --git a/manifest-firefox.json b/manifest-firefox.json index 5ef1b5a..78e4430 100644 --- a/manifest-firefox.json +++ b/manifest-firefox.json @@ -1,8 +1,8 @@ { "manifest_version": 3, - "name": "WebAI Summarizer", + "name": "Summarizer", "version": "1.0.0", - "description": "Ask questions and summarize any webpage with AI", + "description": "Summarize any webpage and use AI chat about what you're reading", "browser_specific_settings": { "gecko": { "id": "webai-summarizer@anomaly.co", diff --git a/manifest.json b/manifest.json index fb850ad..19daf96 100644 --- a/manifest.json +++ b/manifest.json @@ -1,8 +1,8 @@ { "manifest_version": 3, - "name": "WebAI Summarizer", + "name": "Summarizer", "version": "1.0.0", - "description": "Ask questions and summarize any webpage with AI", + "description": "Summarize any webpage and use AI chat about what you're reading", "permissions": [ "activeTab", "tabs", diff --git a/options/options.html b/options/options.html index 4e24428..3636079 100644 --- a/options/options.html +++ b/options/options.html @@ -2,7 +2,7 @@ - Summarize — Settings + Summarizer — Settings @@ -295,10 +295,7 @@
-
- Ctrl+Shift+U (Windows/Linux)  ·  - Cmd+Shift+U (Mac) -
+

Change or enable keyboard shortcut

- Summarize + Summarizer
@@ -130,7 +130,7 @@ type="text" id="chat-input" class="chat-input" - placeholder="Ask about this article..." + placeholder="AI chat — ask about this page…" />