Sort Youtube Watch Later by Duration

As the name implies, sorts youtube watch later by duration

目前為 2022-12-31 提交的版本,檢視 最新版本

作者
KohGeek
評價
0 0 0
版本
2.0.5
建立日期
2022-06-20
更新日期
2022-12-31
尺寸
13.4 KB
授權條款
GNU GPLv2
腳本執行於

Youtube Watch Later Sort by Duration


Youtube Watch Later playlist has always lacked a sort-by-duration function. Without external access, services like YTPlaylistSorter from CarterRJ don't work either, thus introducing this code, now migrated to work on TamperMonkey/GreaseMonkey/ViolentMonkey.

The original code was gratefully contributed by SunnyWiz, but it was broken when it got to me. I just fixed it and added some features to make it easier to use.

As of v2, the code has gone through a significant rewrite to increase maintainability and bring it up to modern standards.

After adding this script, additional UI will be appended as shown below.

Changelog 31/12/2022:

  • Code refactoring
    • Update all comments to fit JSDocs standard
    • Moved variables around
    • Migrate fireMouseEvent to new Event() syntax
  • Added user-friendly log to show the progress of the sorting
  • Added feature to sort in descending order
  • Added feature to sort only loaded videos
  • Added a button to stop sorting (may need to spam the button to stop)
  • Added adjustable wait time after drag

You can find the code to this script here, and submitting feedback at the Github Gist will lead to faster responses.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址