This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Wait for the DOM to load before attaching event listeners | |
document.addEventListener('DOMContentLoaded', () => { | |
const fontSizeInput = document.getElementById('font-size'); | |
const bgColorInput = document.getElementById('bg-color'); | |
const summarizeButton = document.getElementById('summarize-btn'); | |
// Load settings from storage and apply them to the inputs | |
chrome.storage.sync.get(['fontSize', 'bgColor'], (settings) => { | |
if (settings.fontSize) fontSizeInput.value = settings.fontSize; | |
if (settings.bgColor) bgColorInput.value = settings.bgColor; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 3, | |
"name": "Hyperfocus", | |
"version": "1.0", | |
"description": "A productivity extension for ADHD-friendly browsing with readability and AI summarization features.", | |
"permissions": ["storage", "activeTab", "scripting"], | |
"action": { | |
"default_popup": "popup.html" | |
}, | |
"content_scripts": [ |
OlderNewer