This Chrome extension enhances LeetCode problems by adding a YouTube video solutions viewer directly on the problem page.
- Watch solution videos without leaving LeetCode
- Carousel of related solution videos
- Picture-in-picture mode for video player
- Beautiful, modern UI design
- Smooth animations and transitions
-
Clone this repository or download the files
-
Get a YouTube Data API key:
- Go to Google Cloud Console
- Create a new project
- Enable the YouTube Data API v3
- Create credentials (API key)
- Copy the API key
-
Update the
YOUTUBE_API_KEY
constant incontent.js
with your API key -
Load the extension in Chrome:
- Open Chrome and go to
chrome://extensions/
- Enable "Developer mode" in the top right
- Click "Load unpacked"
- Select the extension directory
- Open Chrome and go to
- Navigate to any LeetCode problem
- Click the "Watch Solutions" button in the top left
- Browse through available solution videos
- Click a video to play it
- Use the minimize button for picture-in-picture mode
The extension consists of three main files:
manifest.json
: Extension configurationcontent.js
: Main functionality and YouTube API integrationstyles.css
: Styling and animations
Create icons in the following sizes and place them in an assets
folder:
- 16x16
- 48x48
- 128x128
You can use any icon creation tool or download free icons from resources like Lucide Icons.
- The extension requires a YouTube Data API key to function
- API quota limits apply based on your Google Cloud project settings
- The extension only works on LeetCode problem pages