This commit is contained in:
Julian Freeman
2026-03-11 12:11:38 -04:00
commit 5bae19f80a
8 changed files with 442 additions and 0 deletions

15
content.js Normal file
View File

@@ -0,0 +1,15 @@
(() => {
// Simple extraction of visible text
const text = document.body.innerText;
const url = window.location.href;
const title = document.title;
// Basic cleanup: remove excessive whitespace
const cleanText = text.replace(/\s\s+/g, ' ').substring(0, 10000); // Limit to 10k chars for token savings
return {
text: cleanText,
url,
title
};
})();