Start of redux

This commit is contained in:
2025-04-12 12:45:54 -05:00
parent 75a2c51b94
commit cac52687c8
31 changed files with 359 additions and 2525 deletions

View File

@@ -3,12 +3,11 @@ console.log("Content script starting initialization...");
function sendPageContent() {
const pageContent = {
url: window.location.href,
html: document.documentElement.outerHTML,
timestamp: new Date().toISOString().replace(/\.\d{3}Z$/, 'Z')
};
browser.runtime.sendMessage({
type: "SEND_PAGE_CONTENT",
type: "SEND_PAGE_URL",
data: pageContent
});
}
@@ -19,10 +18,6 @@ browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
return Promise.resolve({ status: "ready" });
}
if (message.type === "GET_PAGE_CONTENT") {
sendPageContent();
}
return true;
});