Skip to content

Instantly share code, notes, and snippets.

@mxjxn
Created July 13, 2012 13:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxjxn/3105027 to your computer and use it in GitHub Desktop.
Save mxjxn/3105027 to your computer and use it in GitHub Desktop.
delete all but the top ten songs in your ttfm queue... once every 1250ms
var t = setInterval(function(){
var sl = $('.songlist').eq(0);
if (sl.find('.song').length >= 10){
sl.find('.song .remove').eq(10).click();
} else {clearInterval(t)}
}, 1250);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment