Bookmarklet for YouTube: Sort videos by length in videos tab
On channels in videos tab you can sort videos by:
- Most popular
- Date added (oldest)
- Date added (newest)
But you cannot sort by length. So I decided to create a bookmarklet to do it (in ascending order).
It doesn't do any requests on its own, it just reorders already shown items on the videos tab. So if you'll scroll the page and YT will load more videos, newly added ones won't be sorted, you will need to rerun bookmarklet again.
Tested in Firefox (69). Unfortunately in Chrome (76) it triggers reloading list of videos, but I haven't investigated why and how to fix it.
In your Bookmarks Toolbar select New Bookmark... from context menu, and in New Bookmark window input whatever name you like (I suggest:
YouTube: Sort videos by length) and use following string as location (it's a one long one-liner):
Warning: It is only meant to be used on videos tabs, i.e. following kind of URLs:
Hope it will serve you well (until YT will change how the videos page is generated).
If you know browser extensions or add-ons enhancing YT sorting features, then please share it.
EDIT (2019-09-08): I was notified that recently the original bookmarklet code was no longer working, so I fixed it.