init commit

This commit is contained in:
2026-06-06 08:28:22 +05:30
commit 3228e9cafc
11 changed files with 1638 additions and 0 deletions

19
background.js Normal file
View File

@@ -0,0 +1,19 @@
// Background service worker for the Page Editor extension
// Listen for extension icon click
chrome.action.onClicked.addListener((tab) => {
// Open popup or perform action
chrome.scripting.executeScript({
target: { tabId: tab.id },
function: () => {
console.log('Page Editor is active');
}
});
});
// Clean up old storage entries
chrome.storage.local.get(null, (items) => {
// Log storage usage
const storageSize = JSON.stringify(items).length;
console.log(`Page Editor storage usage: ${(storageSize / 1024).toFixed(2)} KB`);
});