How qexorium/tubecraft works
TubeCraft is a YouTube browser extension for customizing the player and hiding distractions. The main workflow is that a viewer changes preferences in the popup, those preferences are saved in Chrome sync storage, and the YouTube content script applies them to the page. First-run setup opens a welcome page for language selection; the popup and welcome page share the translation module. The README documents broader visual and focus features, though their styling implementation was not sampled. The content-to-styles relationship is therefore shown as unverified.
Main entry points: welcome.js Welcome page · popup.js Settings popup · i18n.js Translations · content.js Page settings controller
Components 12
Setup and language
- Install handler
background.js - Welcome page
welcome.js - Welcome interface
welcome.html
Preferences
- Settings popup
popup.js - Translations
i18n.js - Popup interface
popup.html
YouTube experience
- Page settings controller
content.js - Player styling and effects
styles.css
Browser platform
- Sync settings
Other components
- Viewer
- Extension installation
- YouTube
Connections 14
- Extension installation → Install handler: installs extension
background.js - Install handler → Welcome page: opens on install
background.js - Viewer → Settings popup: opens settings
README.md - Viewer → Welcome page: chooses language
welcome.js - Settings popup → Popup interface: uses interface
- Welcome page → Welcome interface: uses interface
- Settings popup → Translations: initializes language
popup.js - Welcome page → Translations: initializes language
welcome.js - Settings popup → Sync settings: reads and writes
popup.js - Translations → Sync settings: reads and writes language
i18n.js - Sync settings → Page settings controller: provides preferences
content.js - YouTube → Page settings controller: hosts page controller
- Page settings controller → Player styling and effects: applies visual classes
- Welcome page → YouTube: launches site
welcome.js