Skip to content

Instantly share code, notes, and snippets.

@aquilax
Created April 21, 2022 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aquilax/c97d1345edb71ccee2a75b6dc86bcb01 to your computer and use it in GitHub Desktop.
Save aquilax/c97d1345edb71ccee2a75b6dc86bcb01 to your computer and use it in GitHub Desktop.
Sort Viki watchlist by show rating
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