- Guide
- Home
- Shorts
- Subscriptions
- You
- History
- Playlists
- Watch later
- Liked videos
- Your clips
- Subscriptions title
- Explore
- More from YouTube
- Voice search
- Filter buttons
- Subscriptions latest
- Breaking news
- Comments
- Footer
- One CSS file exists for each preference in
popup.html
- The service worker listens for messages from content scripts and inserts or removes CSS files as needed
- 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 default set of preferences
- The popup allows you to view and update your preferences
- Preferences are stored globally with
chrome.storage.local.set