Skip to content

Instantly share code, notes, and snippets.

@redswallow
Created April 23, 2015 19:45
Show Gist options
  • Save redswallow/6052bbaf8987dbaafba2 to your computer and use it in GitHub Desktop.
Save redswallow/6052bbaf8987dbaafba2 to your computer and use it in GitHub Desktop.
remove STUPID auto-generated song lists created by Douban
$(".songlist li").each(function(){
var pic = $(".songlist-pic", this).css("background-image");
// remove song lists with default cover only
if (pic.indexOf("cover_default") > -1) {
// get sid of the song list
var sid = $(".delete-sl-btn", this).data("sid");
$.post_withck('/j/songlist/uncollect', {
songlist_id : sid
}, function(res){
var res = $.parseJSON(res);
console.log(res);}
)
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment