Created
March 9, 2012 15:41
-
-
Save jihao/2007118 to your computer and use it in GitHub Desktop.
获取douban.fm加红心的歌曲名+艺术家的一行jQuery脚本
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
//获取douban.fm加红心的歌曲名+艺术家的jQuery脚本 | |
//http://douban.fm/mine?start=0&type=liked | |
$('p.song_title').map(function(){return ($(this).text()+"-"+$(this).next('p.performer').text())}) | |
result: | |
["踮起脚尖爱-洪佩瑜", "Innocent-久石譲", "晴朗-许巍", "时光-许巍", "Papa Was a Rodeo-Sara Lov", "Someone Like You-Adele", "一个像夏天一个像秋天-范玮琪", "風になる-サントラ", "遇见-孙燕姿", "左边-杨丞琳", "亲爱的你怎么不在身边-江美琪", "As Long As You Love Me-BACKSTREET BOYS", "爱情转移-陈奕迅", "情非得已-庾澄庆", "你要的爱-戴佩妮"] | |
Note: | |
可以将下面这行加成浏览器标签栏的bookmartlet | |
javascript:var s = document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://code.jquery.com/jquery-1.7.1.min.js';void(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment