Your AI-Powered Defense Against Clickbait: Smart YouTube Video Summarization
A Chrome extension that uses AI to analyze YouTube videos and provide concise, factual summaries, saving you from clickbait and lengthy content.
- Intelligent Title Analysis: Detects clickbait patterns using regex-based pattern matching.
- Multi-Source Transcript Retrieval: Employs three fallback methods for transcript extraction:
- YouTube's
get_video_infoAPI - Page scraping for
ytInitialPlayerResponse - Direct page content analysis
- YouTube's
- Customizable AI Analysis: Offers user control over:
- Skepticism levels (temperature: 0.2 - 0.8)
- Summary length (50-400 words)
- Refresh functionality for alternative summaries.
-
Smart Processing Pipeline:
YouTube Video → Transcript Extraction → AI Analysis → Concise Summary
-
Transcript Extraction Methods:
- Primary: Direct API access
- Backup: DOM scraping
- Fallback: Page content analysis
-
User Controls:
- Skepticism Level Adjustment (Low/Medium/High)
- Summary Length Customization
- One-Click Refresh
- Secure API Key Management
To test the functionality of the Clickbait Digest plugin, you can use the provided test.html file. You can also test it online at Clickbait Digest Test.
-
Clone the repository:
git clone https://github.com/kdklv/clickbait-digest.git
-
Enable Chrome Developer Mode:
- Navigate to
chrome://extensions - Toggle "Developer mode" on
- Click "Load unpacked"
- Select the extension directory
- Navigate to
-
Configure the Extension:
- Obtain your Gemini API key from Google Cloud Console
- Click the extension icon
- Enter your API key in Settings
- Navigate to any YouTube video.
- Click the Clickbait Digest icon.
- Choose your skepticism level:
- Low (0.2): More accepting
- Medium (0.5): Balanced analysis
- High (0.8): Highly critical
- Adjust summary length (50-400 words).
- Read the AI-generated summary.
- Use refresh for alternative perspectives.
- Frontend: HTML5, CSS3, Modern JavaScript
- APIs:
- Google's Gemini API (AI processing)
- Chrome Extension API
- YouTube Data API
- Security:
- Secure API key storage
- CORS handling
- Error management
- API keys stored securely using Chrome's Storage API.
- No data collection or tracking.
- Local processing where possible.
- Transparent error handling.