Forked from KohGeek/SortYoutubePlaylistByDuration β improved UI, speed, and compatibility.
YouTubeSortByDuration is the ultimate YouTube userscript that supercharges your playlist management by sorting videos by duration. Choose fastest-to-slowest or vice versa and watch your playlist get optimized instantly! β‘
- π¬ Sort playlists by video length: shortest-to-longest or longest-to-shortest
- π οΈ Blazing-fast reordering engine with adaptive delays
- π¨ Sleek, modern UI with intuitive controls and live status updates
- π Broad compatibility: Works on all YouTube playlist types and browsers
- π Lightweight & open-source: Zero dependencies, GPL-2.0 licensed
- Install a userscript manager like ViolentMonkey or Tampermonkey.
- Install the script from Greasy Fork.
- Open a YouTube playlist, and the sort controls will appear automatically.
- Open a YouTube playlist.
- Select a sort order (
by Longest
orby Shortest
). - Click Sort Videos to begin.
β€οΈ Contributing
Contributions, bug reports, and feature requests are welcome! Please fork the repo, create a feature branch, and open a pull request.
- Tampermonkey 5.1.0 & Chrome Canary 124: If you encounter issues, set Inject Mode to Instant and enable synchronous mutation events.
- Large Playlists (500+ videos): Sorting may take longer due to adaptive delays for reliability.