A browser extension that lets you summarize any webpage and ask questions using AI.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Comment out legacy debug console.log in popup and content script

+25 -25
+19 -19
popup/popup.js
··· 1105 1105 }, 1106 1106 ]; 1107 1107 1108 - // TEMP: remove after testing — open the extension popup DevTools to see these (not the tab console). 1109 - console.log( 1110 - "[Summarizer DEBUG] extraction source (from tab):", 1111 - contentExtractionSource, 1112 - ); 1113 - console.log( 1114 - "[Summarizer DEBUG] text sent to summarize API — page slice:", 1115 - pageContentForLLM.length, 1116 - "/15000 chars", 1117 - ); 1118 - console.log( 1119 - "[Summarizer DEBUG] text sent to summarize API (page slice):", 1120 - pageContentForLLM, 1121 - ); 1122 - console.log("[Summarizer DEBUG] full summarize API messages:", apiMessages); 1108 + // Legacy debug — uncomment to restore (popup DevTools, not the tab console): 1109 + // console.log( 1110 + // "[Summarizer DEBUG] extraction source (from tab):", 1111 + // contentExtractionSource, 1112 + // ); 1113 + // console.log( 1114 + // "[Summarizer DEBUG] text sent to summarize API — page slice:", 1115 + // pageContentForLLM.length, 1116 + // "/15000 chars", 1117 + // ); 1118 + // console.log( 1119 + // "[Summarizer DEBUG] text sent to summarize API (page slice):", 1120 + // pageContentForLLM, 1121 + // ); 1122 + // console.log("[Summarizer DEBUG] full summarize API messages:", apiMessages); 1123 1123 1124 1124 await chrome.runtime.sendMessage({ action: "ping" }).catch(() => {}); 1125 1125 ··· 1225 1225 const timeoutId = setTimeout(() => { 1226 1226 if (taskId !== activeSuggestionsTaskId) return; 1227 1227 if (generatedSuggestions.length === 0) { 1228 - console.log("Suggestions generation timed out, showing fallback"); 1228 + // console.log("Suggestions generation timed out, showing fallback"); 1229 1229 generatedSuggestions = []; 1230 1230 renderSuggestions(); 1231 1231 } ··· 1286 1286 1287 1287 generatedSuggestions = parseSuggestionLines(content, 3, 8); 1288 1288 1289 - console.log("Parsed suggestions:", generatedSuggestions); 1289 + // console.log("Parsed suggestions:", generatedSuggestions); 1290 1290 1291 1291 // If no valid suggestions parsed, fall back to static 1292 1292 if (generatedSuggestions.length === 0) { 1293 - console.log("No valid suggestions parsed, using fallback"); 1293 + // console.log("No valid suggestions parsed, using fallback"); 1294 1294 generatedSuggestions = []; 1295 1295 } 1296 1296 ··· 1418 1418 1419 1419 generatedSuggestions = parseSuggestionLines(content, 2, 5); 1420 1420 1421 - console.log("Parsed chat suggestions:", generatedSuggestions); 1421 + // console.log("Parsed chat suggestions:", generatedSuggestions); 1422 1422 1423 1423 if (generatedSuggestions.length === 0) { 1424 1424 generatedSuggestions = [];
+6 -6
scripts/content.js
··· 513 513 return { text: extractedText, wasTruncated }; 514 514 } 515 515 516 - /** TEMP: remove after testing — logs to the tab's DevTools console (page context). */ 516 + /** Legacy debug — uncomment body to log to the tab's DevTools (page context). */ 517 517 function logExtractionDebug(source, text) { 518 - console.log("[Summarizer DEBUG] extraction:", source); 519 - console.log( 520 - "[Summarizer DEBUG] raw extracted text (" + text.length + " chars):", 521 - text, 522 - ); 518 + // console.log("[Summarizer DEBUG] extraction:", source); 519 + // console.log( 520 + // "[Summarizer DEBUG] raw extracted text (" + text.length + " chars):", 521 + // text, 522 + // ); 523 523 } 524 524 525 525 function tryRedditShredditExtract() {