8497459444697482d517ce63c521977f9f23b7b4
SDB Audio Extractor Chrome Extension
A Chrome extension that allows you to extract audio from YouTube videos directly to your SDB soundboard application.
Features
- 🎵 Extract audio from YouTube videos with one click
- 🔐 Secure API token authentication
- ⚡ Immediate response - extraction happens in the background
- 📝 Right-click context menu support
- ⚙️ Easy configuration through options page
- 🔄 Real-time status updates
Installation
Method 1: Developer Mode (Recommended)
- Download or clone this extension to your computer
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the
chrome-extensionfolder - The extension should now appear in your extensions list
Method 2: Pack and Install
- In Chrome, go to
chrome://extensions/ - Enable "Developer mode"
- Click "Pack extension"
- Select the
chrome-extensionfolder as the root directory - Click "Pack Extension" to create a
.crxfile - Install the
.crxfile by dragging it to the extensions page
Configuration
Before using the extension, you need to configure your API credentials:
- Click the extension icon in Chrome's toolbar
- Click "Configure API Token" or right-click the extension and select "Options"
- Follow these steps to get your API token:
- Open your SDB soundboard application (usually at http://192-168-100-199.sslip.io)
- Log into your account
- Navigate to your user settings or profile page
- Generate a new API token
- Copy the token
- Paste the token in the "API Token" field
- Verify the "API Base URL" (default: http://192-168-100-199.sslip.io)
- Click "Test Connection" to verify everything works
- Click "Save Settings"
Usage
Method 1: Extension Popup
- Navigate to any YouTube video page
- Click the SDB Audio Extractor extension icon in your toolbar
- The popup will show the current video title and URL
- Click "Extract Audio" to start the extraction
- The extension will send the request to your SDB backend
- Check your soundboard application for the extracted audio
Method 2: Right-Click Context Menu
- Navigate to any YouTube video page
- Right-click anywhere on the page
- Select "Extract Audio with SDB" from the context menu
- You'll receive a notification when the extraction starts
Requirements
- Chrome browser (version 88+)
- SDB soundboard backend running and accessible
- Valid API token from your SDB user account
- Internet connection for YouTube access
File Structure
chrome-extension/
├── manifest.json # Extension configuration
├── popup.html # Main popup interface
├── popup.js # Popup functionality
├── options.html # Configuration page
├── options.js # Options page functionality
├── content.js # YouTube page integration
├── background.js # Background service worker
├── icon16.png # Extension icon (16x16)
├── icon48.png # Extension icon (48x48)
├── icon128.png # Extension icon (128x128)
└── README.md # This file
Permissions
The extension requires the following permissions:
activeTab: To access the current YouTube tabstorage: To save your API configurationhttps://www.youtube.com/*: To work on YouTube pageshttp://localhost:8000/*: To communicate with your SDB backend
Troubleshooting
"API token not configured" Error
- Make sure you've configured your API token in the extension options
- Verify the token is correctly copied from your SDB account
"Cannot connect to API server" Error
- Check that your SDB backend is running (usually on port 8000)
- Verify the API Base URL in the extension options
- Make sure there are no firewall issues blocking localhost connections
"Authentication failed" Error
- Your API token might be expired or invalid
- Generate a new API token in your SDB account
- Update the token in the extension options
Extension not working on YouTube
- Make sure you're on a YouTube video page (youtube.com/watch?v=...)
- Try refreshing the page and clicking the extension again
- Check the browser console for any error messages
Right-click menu not appearing
- The context menu only appears on YouTube video pages
- Make sure the extension is enabled and properly loaded
- Try reloading the extension in chrome://extensions/
Development
To modify or extend this extension:
- Make your changes to the source files
- Go to
chrome://extensions/ - Click the refresh button on the SDB Audio Extractor extension
- Test your changes
Adding New Features
- Modify
manifest.jsonfor new permissions or files - Update
popup.htmlandpopup.jsfor UI changes - Modify
content.jsfor YouTube page interaction - Update
background.jsfor background functionality
Security Notes
- Your API token is stored locally in Chrome's sync storage
- The extension only communicates with YouTube and your configured SDB backend
- No data is sent to third-party services
- Always use HTTPS in production environments
Support
If you encounter issues:
- Check the troubleshooting section above
- Verify your SDB backend is running and accessible
- Check the browser console for error messages
- Ensure your API token is valid and has proper permissions
License
This extension is part of the SDB soundboard project.
Description
Release v1.0.2
Latest
Languages
JavaScript
67.3%
HTML
32.7%