NovelUpdates Tag Sorter
Description:
This userscript significantly enhances the NovelUpdates Series Finder page by introducing a global sort by tag count feature. Unlike previous versions, this script now sorts search results across all result containers on the page, ensuring a comprehensive and consistent sorting order, especially on pages with multiple result sections or pagination. It displays series with the most tags at the very top across all containers and series with the fewest tags at the bottom, distributed across the containers.
Additionally, this version intelligently preserves any existing elements within the first search result container (like filter controls or informational text) while clearing and re-populating only the search result boxes themselves. Subsequent result containers are fully cleared and re-populated with the sorted series.
A floating "Sort by Tags" button is added to the bottom right of the page, allowing you to re-trigger the tag-based sorting at any time after the page has loaded, for example, after applying filters or navigating pages.
Features:
- Global Tag Count Sorting: Sorts search results by tag count across all
.w-blog-content.other
containers on the page, providing a unified sorted list.
- Preserves First Container Elements: Intelligently retains elements within the first search result container (e.g., filter UI) while sorting and re-populating only the series listings.
- Descending Order: Series are sorted in descending order, with novels having the highest tag counts appearing first across all containers.
- Floating "Sort by Tags" Button: Adds a button at the bottom right of the page to manually re-trigger the sorting at any time.
- Automatic Initial Sort: Performs a global sort automatically when the Series Finder page initially loads.
- Debug Logging (Configurable): Includes an option within the script to enable or disable console logging for debugging purposes.
- Preserves Website Functionality: Designed to be non-intrusive and preserves the original functionality of the NovelUpdates Series Finder, including filters and pagination.
How to Use:
- Install a Userscript Manager: You need a browser extension like Tampermonkey (Chrome, Firefox, Safari, Opera), Greasemonkey (Firefox), or Violentmonkey (Chrome, Firefox, Opera).
- Install the Userscript: Click on the "Install" button on the Greasy Fork镜像 script page (once you've listed it). Your userscript manager will prompt you to install the script. Confirm the installation.
- Navigate to NovelUpdates Series Finder: Go to the NovelUpdates Series Finder page: https://www.novelupdates.com/series-finder/ and perform a search.
- Automatic Initial Sorting: The search results across all containers will be automatically sorted by tag count in descending order upon page load.
- Use the "Sort by Tags" Button (Optional): A floating "Sort by Tags" button will appear at the bottom right of the page. Click this button to re-apply the tag-based sorting at any time, for example, after changing filters or navigating to a different page of results.
Recommended Complementary Userscripts:
For an enhanced NovelUpdates experience, we strongly recommend using this script alongside:
Pagetual: This userscript enables automatic infinite scrolling, eliminating the need to manually navigate through multiple pages of search results. When combined with the Tag Sorter, it creates a seamless experience of scrolling through globally sorted results.
NovelUpdates Tag Filter: This companion script adds advanced tag filtering capabilities, allowing you to further refine your sorted results based on specific tags. The combination of sorting by tag count and filtering by specific tags provides ultimate control over finding exactly the type of novels you're looking for.
Using all three scripts together creates a powerful, customized NovelUpdates browsing experience with comprehensive sorting, filtering, and navigation enhancements.
Customization:
- Enable/Disable Debug Logging:
If you want to see detailed console logs for debugging purposes (e.g., to understand how the script is working or if you encounter issues), you can enable logging by modifying a setting within the userscript code:
- Open your userscript manager and find the "NovelUpdates Tag Sorter" script in your script list.
- Edit the script.
Look for the following section in the code (usually near the top):
// ========================================================================
// USER CONFIGURATION - IMPORTANT!
// ========================================================================
// Set this to 'true' to enable console logging for debugging,
// or 'false' to disable console logs for cleaner console output.
const enableLogging = false; // <===== ADJUST THIS TO 'true' TO ENABLE LOGGING, 'false' TO DISABLE
// ========================================================================
// END USER CONFIGURATION
Change const enableLogging = false;
to const enableLogging = true;
to enable console logging. To disable logging (cleaner console), set it back to false
.
Save the script.
Refresh the NovelUpdates Series Finder page.
License:
This userscript is released under the MIT License.
Support and Feedback:
If you encounter any issues, have suggestions for improvements, or want to provide feedback, please use the "Feedback" link on the Greasy Fork镜像 script page or contact the author directly.