Select the types of activity you want to include in your feed.
Config-driven summarize label and revised quick summary prompt
- Add CONFIG.EXTENSION.QUICK_SUMMARY_LABEL and apply it in popup branding and button state. - Restructure QUICK_SUMMARY prompt: opening takeaway, then Key Points section.
···157157const SYSTEM_PROMPT_SUMMARIZER = CONFIG.PROMPTS.SYSTEM_SUMMARIZER;
158158const SYSTEM_PROMPT_CHAT = CONFIG.PROMPTS.SYSTEM_CHAT;
159159const QUICK_SUMMARY_PROMPT = CONFIG.PROMPTS.QUICK_SUMMARY;
160160+const QUICK_SUMMARY_LABEL = CONFIG.EXTENSION.QUICK_SUMMARY_LABEL;
160161161162const API_SETTINGS_DEFAULTS = {
162163 apiMode: CONFIG.API.MODE,
···403404 if (initialSub) initialSub.textContent = ext.EMPTY_SUB;
404405 if (chatInput)
405406 chatInput.placeholder = `Ask ${ext.NAME} about this page…`;
407407+ if (summarizeLabel) summarizeLabel.textContent = ext.QUICK_SUMMARY_LABEL;
406408}
407409408410document.addEventListener("DOMContentLoaded", async () => {
···506508 cachedContent.extractionSource || "reddit-unsupported";
507509 isExtracting = false;
508510 summarizeBtn.disabled = false;
509509- setSummarizeLabel("Quick Summary");
511511+ setSummarizeLabel(QUICK_SUMMARY_LABEL);
510512 showRedditUnsupportedError(extractionUnsupportedReason);
511513 return;
512514 }
···551553 renderChatMessages();
552554 } else {
553555 // No summaries yet - check if we should auto-summarize
554554- setSummarizeLabel("Quick Summary");
556556+ setSummarizeLabel(QUICK_SUMMARY_LABEL);
555557 if (
556558 (autoSummarize || shouldAutoSummarize) &&
557559 !isLoading &&
···572574 }
573575574576 summarizeBtn.disabled = false;
575575- setSummarizeLabel("Quick Summary");
577577+ setSummarizeLabel(QUICK_SUMMARY_LABEL);
576578577579 // Check if we should auto-trigger summarize (from keyboard shortcut, context menu, or auto-summarize setting)
578580 if (
···608610 chatContainer.classList.add("hidden");
609611 footer.classList.remove("hidden");
610612 chatInput.value = "";
611611- setSummarizeLabel("Quick Summary");
613613+ setSummarizeLabel(QUICK_SUMMARY_LABEL);
612614 summarizeBtn.disabled = false;
613615 isLoading = false;
614616 isChatLoading = false;
···15771579 if (loading) {
15781580 setSummarizeLabel("Thinking…");
15791581 } else {
15801580- // When done loading, show "Regenerate" if we have a summary, otherwise "Quick Summary"
15811581- setSummarizeLabel(quickSummary ? "Regenerate" : "Quick Summary");
15821582+ // When done loading, show "Regenerate" if we have a summary, otherwise the configured label
15831583+ setSummarizeLabel(quickSummary ? "Regenerate" : QUICK_SUMMARY_LABEL);
15821584 }
15831585}
15841586
+9-3
scripts/config.js
···9090 "You are Lede, a helpful assistant that summarizes webpages concisely. Foreground the main point (the lede) before supporting detail.",
9191 SYSTEM_CHAT:
9292 "You are Lede, a helpful assistant answering questions about a webpage. Use the provided page content and summary to give accurate, concise answers. You may use short sentences, sections, and bullet points to answer. Avoid long paragraphs and tables. ONLY answer based on the provided page content and summary, not any external knowledge or information.",
9393- QUICK_SUMMARY: `Please provide a "Quick Summary" of this webpage. Focus on the main points and key takeaways. Use markdown formatting (headings, bullet points, etc.).
9393+ QUICK_SUMMARY: `You are to provide a "Quick Summary" of this webpage.
9494+9595+ Start with very brief sentence that provides the most important takeaway or piece of information. This section should have no title. A few key words should be **bolded** so people can quickly scan.
94969595-The "Quick Summary" should be 3-5 **short** one-sentence bullet points. Each of these bullet points should have key points/takeaways **bolded** so people can quickly scan.`,
9797+ Then, create a section called "Key Points". Focus on the main points and key takeaways. Use markdown formatting (headings, bullet points, etc.). Avoid repeating the same information from previous sections.
9898+9999+ The "Key Points" should be 3-4 **short** one-sentence bullet points. Each of these bullet points should have key points/takeaways **bolded** so people can quickly scan.`,
96100 SUGGESTIONS: `Based on the summary provided, generate 2 natural follow-up questions that a reader might want to ask (besides "Why would this be worth reading?"). Keep questions short (5-8 words), like these examples:
97101- What are some key quotes?
98102- Explain this simply
···110114 },
111115112116 /**
113113- * Display strings wired in `options/options.js` and `popup/popup.js` (titles, taglines, empty state).
117117+ * Display strings wired in `options/options.js` and `popup/popup.js` (titles, taglines, empty state, summarize button).
114118 * Name / tagline: keep aligned with manifest `name` and `description`. Shortcuts: same chord as manifest `commands.summarize-page.suggested_key`.
115119 * Extension version lives only in the manifest(s); use `chrome.runtime.getManifest().version` in code if needed.
116120 */
···128132 SETTINGS_MOTTO: "Let Lede lead the way.",
129133 SHORTCUT: "Ctrl+Shift+U",
130134 SHORTCUT_MAC: "Cmd+Shift+U",
135135+ /** Footer primary button when no summary yet (and after errors / reset). */
136136+ QUICK_SUMMARY_LABEL: "Summarize",
131137 },
132138133139 /**