WTR-Lab Library Auto-Sorter by Progress

Automatically sorts your WTR-Lab library by reading progress (lowest to highest) upon page load.

作者
MasuRiii
日安装量
0
总安装量
1
评分
0 0 0
版本
1.5
创建于
2025-10-10
更新于
2025-10-10
大小
4.5 KB
许可证
MIT
适用于

This script provides a simple but powerful "quality of life" improvement for users of WTR-Lab. It automatically sorts your library by reading progress, placing the series you are furthest behind on at the very top. This allows you to quickly see which series you need to catch up on without having to manually scan the page or use the site's default sorting options.

The sorting is done from lowest progress to highest progress.

How It Works

The script is designed to be lightweight and unobtrusive. When you load your library page, it waits for the list of series to appear. Once the content is loaded, the script:

  1. Reads the progress percentage for every item in your library.
  2. Sorts the items in ascending order based on that percentage.
  3. Re-arranges the items on the page to reflect the new sorted order.

This all happens automatically within a fraction of a second after the page content becomes available.

Features

  • Fully Automatic: No buttons to click or menus to navigate. It just works.
  • Client-Side Sorting: Sorts the items directly in your browser without needing to reload the page.
  • Smart Loading: Uses a MutationObserver to ensure it works correctly even if the library items are loaded dynamically after the initial page load.
  • Lightweight: Minimal performance impact.

Usage

  1. Make sure you have a userscript manager like Tampermonkey (recommended), Greasemonkey, or Violentmonkey installed in your browser.
  2. Click the "Install this script" button on Greasy Fork镜像.
  3. Your userscript manager will prompt you to confirm the installation.
  4. That's it! Just navigate to your WTR-Lab Library, and the script will do its job automatically.

Troubleshooting & FAQ

Q: The script isn't working! My library isn't being sorted. A: WTR-Lab may have updated their website's code, which can break the script. Please check the script's page on Greasy Fork镜像 for any updates. If there are no updates, please open a new topic in the Feedback section to report the issue.

Q: I see the library load in its original order and then quickly re-sort. Is this normal? A: Yes, this is expected behavior. The script can only run after the website has loaded the content onto the page. The brief "flicker" you see is the script re-ordering the items as intended.

Q: Can I change the sorting order to be highest-to-lowest? A: You can! To reverse the sort order, you will need to edit the script.

  1. Open the Tampermonkey dashboard and find this script.
  2. Click the "Edit" icon.
  3. Find this line (around line 75): javascript return percentA - percentB;
  4. Change it to: javascript return percentB - percentA;
  5. Save the script (Ctrl+S or File > Save).

License

This script is released under the MIT License. You are free to use, modify, and distribute it as you see fit.

QingJ © 2025

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