View Code? Open in Web Editor
NEW
Chrome extension to hide YouTube features
Home Page: https://chromewebstore.google.com/detail/simplify-youtube/lcakcdjbimeedkincdcpphddbjdmdhaa
License: GNU General Public License v3.0
HTML 37.22%
JavaScript 10.54%
CSS 18.21%
TypeScript 34.03%
simplify-youtube's Introduction
Hide features you don't use
- Home
- Shorts
- Subscriptions
- Breaking news
- Comments
popup.ts
- 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
simplify-youtube's People
Contributors
Watchers