Initial commit

This commit is contained in:
2025-09-23 00:29:33 +02:00
commit 4f120b68f5
14 changed files with 394 additions and 0 deletions

15
options.js Normal file
View File

@@ -0,0 +1,15 @@
const favInput = document.getElementById('favcolor');
const saveBtn = document.getElementById('save');
const msg = document.getElementById('msg');
chrome.storage.sync.get(['favcolor']).then(data => {
favInput.value = data.favcolor || '';
});
saveBtn.addEventListener('click', () => {
const val = favInput.value || '';
chrome.storage.sync.set({ favcolor: val }).then(() => {
msg.textContent = 'Saved.';
setTimeout(() => (msg.textContent = ''), 1500);
});
});