YouTube Video Sorter is a Chrome extension designed to help users categorize and filter videos on YouTube channel pages. It integrates seamlessly with YouTube's existing UI, adding custom sorting options based on user-defined categories and keywords.
- Create and manage custom categories with associated keywords directly on YouTube pages
- Add custom sorting options to YouTube's existing sort menu
- Filter videos by category directly from the YouTube interface
- Persistent storage of categories across browser sessions
- Clone this repository or download the source code.
- Open Google Chrome and navigate to
chrome://extensions/
. - Enable "Developer mode" in the top right corner.
- Click "Load unpacked" and select the directory containing the extension files.
- Navigate to a YouTube channel page.
- Click the "Sort by" button to open the sort menu.
- Select "Manage Categories" from the menu options.
- In the category manager overlay:
- Add new categories by entering a name and comma-separated keywords
- View existing categories and their keywords
- Delete categories you no longer need
- Close the category manager by clicking "Manage Categories" again.
- Use your custom categories from the "Sort by" menu to filter videos.
- Select a category to sort the videos. Videos matching the category will be shown first, while others will be hidden.
- Use the "Reset Custom Sort" option to return to the original video order.
manifest.json
: Chrome extension manifest filecontent.js
: Content script that integrates with YouTube's UI and manages categoriesbackground.js
: Background script for the extension
To modify or extend the extension:
- Edit the relevant files (
content.js
,manifest.json
, etc.). - Save your changes.
- Go to
chrome://extensions/
in Chrome. - Find the YouTube Video Sorter extension and click the refresh icon.
- Implement regex-based rules for more precise video matching
- Add options to customize the sorting behavior (e.g., hide non-matching videos vs. show them last)
- Support for sorting on search results pages
- Add ability to edit existing categories
- Improve the UI of the category manager
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.