Sort RYM track ratings by score with a toggle button
This Tampermonkey script adds a "Sort by Rating" button above the tracklist on RateYourMusic album pages. Click it to instantly sort tracks by rating, making it easy to spot the highest-rated songs. Click again to restore the original order.
The script automatically detects the tracklist, works with both old and new RYM layouts, and retries if the page loads dynamically. It sorts tracks based on their rating percentage and uses a MutationObserver to handle changes.