initial commit

This commit is contained in:
2026-08-12 09:02:09 +03:00
commit ef70a20093
20 changed files with 495 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
const checkbox = document.getElementById("auto-capture-toggle");
const statusLine = document.getElementById("status-line");
function renderStatus(enabled) {
statusLine.textContent = `Auto-capture: ${enabled ? "ON" : "OFF"}`;
}
chrome.storage.local.get({ autoCaptureEnabled: true }).then(({ autoCaptureEnabled }) => {
checkbox.checked = autoCaptureEnabled;
renderStatus(autoCaptureEnabled);
});
checkbox.addEventListener("change", () => {
chrome.storage.local.set({ autoCaptureEnabled: checkbox.checked });
renderStatus(checkbox.checked);
});