Polarize is an open-source Chrome extension that helps coders and developers learn faster from YouTube programming tutorials.
With a single-click, theme-adjustable overlay, Polarize brightens dark IDEs in videos, reduces glare, and uses AI to let you copy code straight from the screen.
Click below to watch a demo! 👇
Quick links:
- ✨ Features
- 🚀 Getting Started – Chrome Extension
- 🛠️ Local Development Setup
- 🧪 Local Testing
- 🔐 AI Code Copying (Gemini API Key)
- 🧩 Tech Stack
- 👐 Contributing
- 📄 License
-
🎯 AI-Powered Code Copying
Capture and extract code directly from YouTube videos using Google Gemini. -
🌈 Theme-Adjustable Overlay
Brighten dark IDEs and reduce glare with a resizable, customizable overlay. -
🖱️ One-Click Simplicity
Enable or disable features with ease from the popup or context menu.
Install the official extension from the Chrome Store here!
You can try out out and extend a local version of Polarize by following the steps below.
git clone https://github.com/your-username/polarize.git
cd polarize
npm install
npm run build
- Open Chrome and navigate to
chrome://extensions/
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the
dist
folder in your cloned repository. - The extension should now be loaded and ready to use!
Run interactive tests with:
npm run test:integration
To use the code copying feature, at present you’ll need a Google Gemini API key. Additional cloud or local integration requests are welcome!
Once you have it:
Open the extension popup
Paste your API key in the input field
Click "Save API Key"
Your key will be stored securely in local browser storage and used only for local requests.
This is a simple Chrome extension built with the barebones:
-
Chrome Extension (Manifest V3)
-
Vite for bundling
-
Vanilla JS
-
Google Gemini for OCR/code recognition
-
Playwright for integration tests
Pull requests are welcome! If you have feature suggestions, bug reports, or want to improve the UI, feel free to open an issue or PR.
MIT — do whatever you'd like, just give credit where it's due.