Skip to content

Instantly share code, notes, and snippets.

@garywill
Forked from zhimiaoli/Podcast Bookmarklet.js
Created February 20, 2018 04:24
Show Gist options
  • Save garywill/dfae99fb6eec7f7f1d6be430aa4ce87d to your computer and use it in GitHub Desktop.
Save garywill/dfae99fb6eec7f7f1d6be430aa4ce87d to your computer and use it in GitHub Desktop.
将喜马拉雅、荔枝FM转换成可订阅XML地址
javascript:(function(){if ((Id = /^http:\/\/www\.lizhi\.fm\/(\d{2,})/.exec(window.location.href))!== null) {prompt('http://nj.lizhi.fm/rss/'+Id[1]+'.xml');}else if ((Id = /^http:\/\/www\.ximalaya\.com\/.*\/album\/(\d{2,})/.exec(window.location.href))!== null) {prompt('URL','http://ximalaya.com/album/'+Id[1]+'.xml');}else if ((Id = /^http:\/\/lebo\.baidu\.com\/album\/(\d{2,})/.exec(window.location.href))!== null) {prompt('http://lebo.baidu.com/dj/rss/'+Id[1]);}else if ((Id = /^https:\/\/itunes\.apple\.com\/[a-zA-Z]+\/podcast\/.*/.exec(window.location.href))!== null) {alert('Wait a minute and check the result.');prompt('picklemonkey.net/flipper/extractor.php?feed='+window.location.href);}else{alert('Not support or wrong url!');}})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment