音乐脚本
免费下载音乐所使用的脚本如下:
// ==UserScript== // @name 全网音乐一键免费下载 一键搜索 在线试听 【高清品质请选择QQ下载源】 // @version 1.1.9 // @homepage https://greasyfork.org/zh-CN/scripts/37058 // @match *://music.163.com/* // @match *://y.qq.com/* // @match *://www.kugou.com/* // @match *://www.kuwo.cn/* // @match *://www.xiami.com/* // @match *://music.baidu.com/* // @match *://www.qingting.fm/* // @match *://www.lizhi.fm/* // @match *://music.migu.cn/* // @match *://www.ximalaya.com/* // @description 全网音乐在线试听 一键免费下载 一键搜索 提供多站合一 音乐试听 音乐下载 音乐搜索解决方案,网易云音乐,QQ音乐,酷狗音乐,酷我音乐,虾米音乐,百度音乐,蜻蜓FM,荔枝FM,喜马拉雅 // @grant unsafeWindow // @require http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js // @icon http://music.sonimei.cn/favicon.ico // @run-at document-end // @namespace // ==/UserScript== (function() { 'use strict'; var curPlaySite = ''; var curWords = ''; var videoSite = window.location.href; var reWY = /163(.*)song/i; var reQQ = /QQ(.*)song/i; var reKG = /kugou(.*)song/i; var reKW = /kuwo(.*)yinyue/i; var reXM = /xiami/i; var reBD = /baidu/i; var reQT = /qingting/i; var reLZ = /lizhi/i; var reMG = /migu/i; var reXMLY = /ximalaya/i; var vipBtn = '<a target="_blank" id="VipMusicBtn" style="margin:10px 0;display:inline-block;padding:0 5px;height:22px;border:1px solid red;color:red;vertical-align:bottom;text-decoration:none;font-size:17px;line-height:22px;cursor:pointer;">一键免费下载</a>'; //网易云音乐 if(reWY.test(videoSite)){ var Title = $('.u-icn-37'); Title.parent('.hd').after(vipBtn); $('#VipMusicBtn').attr('href','http://music.sonimei.cn/?url=' + encodeURIComponent(window.location.href.replace('http://music.163.com', "http://music.163.com/#"))); } //QQ音乐 if(reQQ.test(videoSite)){ var Title = $('.data__name_txt'); Title.parent('.data__name').after(vipBtn); $('#VipMusicBtn').attr('href','http://music.sonimei.cn/?url=' + encodeURIComponent(window.location.href)); } //酷狗音乐 if(reKG.test(videoSite)){ KGadd(); setInterval(function(){KGadd()},1000); function KGadd(){ if($("#VipMusicBtn").length==0 && $(".audioName").length>0){ var Title = $('.audioName'); Title.parent('.songName').after(vipBtn); } $("#VipMusicBtn").attr("href","http://music.sonimei.cn/?url=" + encodeURIComponent(window.location.href)); } } //酷我音乐 if(reKW.test(videoSite)){ var Title = $('#sinlesDownBtn'); Title.parent('.down').after(vipBtn); $('#VipMusicBtn').attr('href','http://music.sonimei.cn/?url=' + encodeURIComponent(window.location.href)); } //虾米音乐 if(reXM.test(videoSite)){ var Title = $('.player'); Title.parent('.song_info').after(vipBtn); $('#VipMusicBtn').attr('href','http://music.sonimei.cn/?url=' + encodeURIComponent(window.location.href)); } //百度音乐 if(reBD.test(videoSite)){ var Title = $('.songpage-title'); Title.parent('.song').after(vipBtn); $('#VipMusicBtn').attr('href','http://music.sonimei.cn/?url=' + encodeURIComponent(window.location.href)); } //蜻蜓FM if(reQT.test(videoSite)){ QTadd(); setInterval(function(){QTadd()},1000); function QTadd(){ if($("#VipMusicBtn").length==0 && $(".sprite-program").length>0 && /qingting(.*)programs/i.test(window.location.href)){ $(".sprite-program").parent().after(vipBtn); } $("#VipMusicBtn").attr("href","http://music.sonimei.cn/?url=" + encodeURIComponent(window.location.href)); } } //荔枝FM if(reLZ.test(videoSite)){ var Title = $('.audioName'); Title.parent('.audioInfo').after(vipBtn); $('#VipMusicBtn').attr('href','http://music.sonimei.cn/?url=' + encodeURIComponent(window.location.href)); } //喜马拉雅 if(reXMLY.test(videoSite)){ XMadd(); setInterval(function(){XMadd()},1000); function XMadd(){ if($("#VipMusicBtn").length==0 && $(".detailContent_title").length>0 && /ximalaya(.*)sound/i.test(window.location.href)){ var Title = $('.detailContent_title'); Title.parent('.right').after(vipBtn); } $("#VipMusicBtn").attr("href","http://music.sonimei.cn/?url=" + encodeURIComponent(window.location.href)); } } })();
注:此脚本转载自网络,如有侵权,请告知删除!