Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 895 Bytes

File metadata and controls

9 lines (8 loc) · 895 Bytes

manifest-notes.md

  • storage — to remember the user's dimmer level and per-site lock settings.
  • tabs — to read the active tab’s URL so we can apply the correct per-site brightness.
  • alarms — to wake the background service worker for scheduled dimming transitions.
  • "<all_urls>" — to inject the dimmer on every website, since the extension’s purpose is to dim any site.
  • content_scripts @ document_start — to place the overlay before the page fully shows, avoiding a bright flash. Shared helpers (src/shared/math.js, src/shared/storage.js) now load alongside the overlay so both popup and content script use the same logic.
  • background.service_worker (src/background/service-worker.js) — runs the scheduler that flips dimming levels at sunrise, sunset, or custom times.
  • all_frames: true — to dim iframes/embedded content along with the main page.