A VS Code extension that allows you to quickly add YouTube URLs to an ignore list and clean up your workspace by removing the containing directory.
Features
- Right-click context menu - Add "Add to ignore list" option when text is selected
- YouTube URL validation - Only works with valid YouTube URLs
- Repository scoping - Configure which GitHub repositories can use this extension
- Automatic cleanup - Deletes the directory containing the current file after adding URL to ignore list
- Safe operations - Confirmation dialogs and error handling
Usage
- Select a YouTube URL in any file (e.g.,
https://www.youtube.com/watch?v=abc123
)
- Right-click on the selected text
- Choose "Add to ignore list" from the context menu
- The URL will be added to
/video-aggregator/data/ignore.json
- Confirm deletion of the directory containing the current file

Configuration
Allowed Repositories
Configure which GitHub repositories can use this extension:
- Open VS Code Settings (
Ctrl/Cmd + ,
)
- Search for "YouTube URL Ignorer"
- Add repositories to "Allowed Repositories" list
- Format:
username/repository-name
Example:
{
"youtubeUrlIgnorer.allowedRepositories": [
"your-username/video-project",
"company/content-aggregator"
]
}
Requirements
- Git repository - Must be working in a Git-enabled workspace
- GitHub remote - Repository must have a GitHub remote origin
- File system access - Extension needs permission to read/write files and delete directories
The extension recognizes these YouTube URL formats:
https://www.youtube.com/watch?v=VIDEO_ID
https://youtube.com/watch?v=VIDEO_ID
https://youtu.be/VIDEO_ID
http://
variants of the above
File Structure
The extension expects and creates:
your-repo/
├── video-aggregator/
│ └── data/
│ └── ignore.json # URLs are added here
└── other-files...
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X
)
- Search for "YouTube URL Ignorer"
- Click Install
From VSIX File
- Download the
.vsix
file from releases
- Open VS Code
- Run
Extensions: Install from VSIX...
from Command Palette
- Select the downloaded file
Development
Prerequisites
Setup
git clone <your-repo-url>
cd youtube-url-ignorer
npm install
npm run compile
Testing
- Press
F5
to open Extension Development Host
- Test the extension in the new VS Code window
Building
npm install -g vsce
vsce package
Security & Safety
- Repository validation - Only works in configured GitHub repositories
- URL validation - Verifies selected text is a valid YouTube URL
- Confirmation dialogs - Asks before deleting directories
- Error handling - Graceful failure with user-friendly messages
Changelog
0.0.1
- Initial release
- Basic YouTube URL detection and ignore list functionality
- Repository scoping
- Directory deletion with confirmation
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
)
- Commit your changes (
git commit -m 'Add amazing feature'
)
- Push to the branch (
git push origin feature/amazing-feature
)
- Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you encounter any issues or have feature requests:
- Check existing GitHub Issues
- Create a new issue with detailed description
- Include VS Code version, extension version, and steps to reproduce
Author
Josh Harwood
Note: This extension is designed for specific workflow automation. Use with caution as it deletes directories permanently.