Created
April 23, 2015 19:45
-
-
Save redswallow/6052bbaf8987dbaafba2 to your computer and use it in GitHub Desktop.
remove STUPID auto-generated song lists created by Douban
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
$(".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