Skip to content

Instantly share code, notes, and snippets.

View idontcalculate's full-sized avatar
🫘
magic

Sirius1389 idontcalculate

🫘
magic
View GitHub Profile
// 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;
{
"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": [