Created
June 17, 2019 19:04
-
-
Save jwkblades/7e20961a66ae22e7fb89b41ecf3d3ded to your computer and use it in GitHub Desktop.
Bookmarklet to sort Google Music albums by year descending (most recent first)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var cards = Array.from(document.querySelectorAll(".lane-content > .material-card")); var sorted = cards.sort(function(a, b) {var getDate = function(ele) {return parseInt(ele.querySelector(".sub-title").innerText);}; return getDate(b) - getDate(a); }); sorted.forEach(function(e) { e.parentNode.appendChild(e); });})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment