- Home
- Shorts
- Subscriptions
- Breaking news
- Comments
- The popup allows you to view and update your preferences
- Preferences are stored globally with
chrome.storage.local.set
- Content scripts monitor the stored preferences with
chrome.storage.onChanged.addListener
- When preferences are updated, a message is sent to the background worker from each content script
- JavaScript is executed to update the DOM when CSS is not enough
- The service worker listens for messages from content scripts and inserts or removes CSS files as needed
- One CSS file exists for each preference in
popup.html