Created
April 21, 2022 16:47
-
-
Save aquilax/c97d1345edb71ccee2a75b6dc86bcb01 to your computer and use it in GitHub Desktop.
Sort Viki watchlist by show rating
This file contains 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
list = document.querySelector('.container > div:nth-child(2)'); [...list.children] | |
.sort((a,b)=>a.querySelector('.kngppJ').innerText<b.querySelector('.kngppJ').innerText?1:-1) | |
.forEach(node=>list.appendChild(node)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment