全网音乐免费下载

音乐搜索解决方案,网易云音乐,淘宝购物优惠券查询,QQ音乐,酷狗音乐,酷我音乐,虾米音乐,百度音乐,蜻蜓FM,荔枝FM,喜马拉雅

// ==UserScript==
// @name         全网音乐免费下载
// @version      3.3.2
// @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
// @include      *.acfun.cn/v/*
// @include      *.bilibili.com/video/*
// @include      *.bilibili.com/anime/*
// @include      *.bilibili.com/bangumi/play/*
// @match        *://*.taobao.com/*
// @match        *://*.jd.com/*
// @match        *://npcitem.jd.hk/*
// @match        *://*.tmall.com/*
// @match        *://detail.vip.com/*
// @match        *://*.tmall.hk/*
 // @exclude    *://s.click.taobao.com/*
 // @exclude    *://detail.tmall.com/item.htm?id=/*
  // @exclude    *://uland.taobao.com/*
// @exclude       *://login.taobao.com/*
// @exclude       *://pages.tmall.com/*
// @require      https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// @require      https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// @require      https://lib.baomitu.com/jquery/1.12.4/jquery.min.js
// @require      https://cdn.jsdelivr.net/npm/sweetalert2@9.14.0/dist/sweetalert2.min.js
// @require      https://lib.baomitu.com/echarts/4.6.0/echarts.min.js
// @require      https://lib.baomitu.com/layer/2.3/layer.js
// @require      https://lib.baomitu.com/reflect-metadata/0.1.13/Reflect.min.js
// @require      https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js
// @require      https://cdn.jsdelivr.net/npm/vuex@3.4.0/dist/vuex.min.js
// @require      https://cdn.jsdelivr.net/npm/qrcode@1.4.4/build/qrcode.min.js
// @require      https://cdn.jsdelivr.net/npm/crypto-js@4.0.0/crypto-js.js
// @require      https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// @license      MIT
// @grant        GM_setClipboard
// @run-at       document-end
// @connect      shangxueba365.com
// @connect      api.wandhi.com
// @connect      cdn.jsdelivr.net
// @connect      tool.manmanbuy.com
// @connect      xbeibeix.com
// @grant        unsafeWindow
// @grant        GM_xmlhttpRequest
// @grant        GM_info
// @grant        GM.addStyle
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_notification
// @grant        GM_openInTab
// @grant        GM_deleteValue
// @grant        GM_registerMenuCommand
// @grant        GM_unregisterMenuCommand
// @namespace
// @namespace
// @namespace 
// ==/UserScript==


(function() {

    'use strict';


    debugger;
 // Your code here...
 var style = document.createElement('link');
 style.href = 'https://mmys.club/youhuiquan.css';
 style.rel = 'stylesheet';
 style.type = 'text/css';
 document.getElementsByTagName('head').item(0).appendChild(style);

 var obj = {};
obj.isDetailPageTaoBao = function (url) {
     if (url.indexOf("//item.taobao.com/item.htm") > 0 || url.indexOf("//detail.tmall.com/item.htm") > 0 || url.indexOf("//chaoshi.detail.tmall.com/item.htm") > 0 || url.indexOf("//detail.tmall.hk/hk/item.htm") > 0 || url.indexOf(".jd.") > 0 || url.indexOf("detail.vip") > 0) {
         return false;
     } else {
         return true;
     }
 };

if(obj.isDetailPageTaoBao(location.href))
{





(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://www.jbsou.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://www.jbsou.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://www.jbsou.cn/?url=" + encodeURIComponent(window.location.href));
 }
}

//酷我音乐
if(reKW.test(videoSite)){
 var Title = $('#sinlesDownBtn');
 Title.parent('.down').after(vipBtn);
 $('#VipMusicBtn').attr('href','http://www.jbsou.cn/?url=' + encodeURIComponent(window.location.href));
}

//虾米音乐
if(reXM.test(videoSite)){
 var Title = $('.player');
 Title.parent('.song_info').after(vipBtn);
 $('#VipMusicBtn').attr('href','http://www.jbsou.cn/?url=' + encodeURIComponent(window.location.href));
}

//百度音乐
if(reBD.test(videoSite)){
 var Title = $('.songpage-title');
 Title.parent('.song').after(vipBtn);
 $('#VipMusicBtn').attr('href','http://www.jbsou.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://www.jbsou.cn/?url=" + encodeURIComponent(window.location.href));
 }
}

//荔枝FM
if(reLZ.test(videoSite)){
 var Title = $('.audioName');
 Title.parent('.audioInfo').after(vipBtn);
 $('#VipMusicBtn').attr('href','http://www.jbsou.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://www.jbsou.cn/?url=" + encodeURIComponent(window.location.href));
 }
}

})();


}

else{
    (function() {
        'use strict';




        // Your code here...
        var style = document.createElement('link');
        style.href = 'https://mmys.club/youhuiquan.css';
        style.rel = 'stylesheet';
        style.type = 'text/css';
        document.getElementsByTagName('head').item(0).appendChild(style);








        var obj = {};
        obj.initSearchHtml = function (selectorList) {
            setInterval(function () {
                selectorList.forEach(function (selector) {
                    obj.initSearchItemSelector(selector);
                });
            }, 3000);
        };


        obj.basicQuery = function () {
            setInterval(function () {
                $(".tb-cool-box-wait").each(function () {
                    obj.basicQueryItem(this);
                });
            }, 3000);
        };

        obj.initSearchItemSelector = function (selector) {
            $(selector).each(function () {
                obj.initSearchItem(this);
            });
        };



        obj.isDetailPageTaoBao = function (url) {
            if (url.indexOf("//item.taobao.com/item.htm") > 0 || url.indexOf("//detail.tmall.com/item.htm") > 0 || url.indexOf("//chaoshi.detail.tmall.com/item.htm") > 0 || url.indexOf("//detail.tmall.hk/hk/item.htm") > 0) {
                return true;
            } else {
                return false;
            }
        };
     obj.isDetailPageJD = function (url) {
            if (url.indexOf("//item.jd.com") > 0 ) {
                return true;
            } else {
                return false;
            }
        };
        obj.isVailidItemId = function (itemId) {
            if (!itemId) {
                return false;
            }

            var itemIdInt = parseInt(itemId);
            if (itemIdInt == itemId && itemId > 10000) {
                return true;
            }
            else {
                return false;
            }
        };

        obj.isValidNid = function (nid) {
            if (!nid) {
                return false;
            }
            else if (nid.indexOf('http') >= 0) {
                if (obj.isDetailPageTaoBao(nid) || nid.indexOf("//detail.ju.taobao.com/home.htm") > 0) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else {
                return true;
            }
        };
     obj.isDetailPageTaoBaoExtra = function (url) {
            if (url.indexOf("//item.taobao.com/item.htm") > 0 || url.indexOf("//detail.tmall.com/item.htm") > 0 || url.indexOf("//chaoshi.detail.tmall.com/item.htm") > 0 || url.indexOf("//detail.tmall.hk/hk/item.htm") > 0) {
                return true;
            } else {
                return false;
            }
        };



     if (obj.isDetailPageTaoBaoExtra(location.href)) {
            if (location.href.indexOf('513160') > -1) {

                var couponArea2 = '<div class="coupon-wrap" ><div class="coupon" style="position: unset;padding-right: 0rem; display: block; color: gray;"><div class="coupon-info" style="position: unset;"><div class="coupon-desc">暂无优惠券</div></div>';
                if (location.href.indexOf('//detail.tmall') != -1) {


                    $('.tm-fcs-panel').after(couponArea2);

                }

            } else {
                var params = location.search.split('?')[1].split('&');
                var productId;

                for (var index in params) {
                    if (params[index].split('=')[0] == 'id') {
                        productId = params[index].split('=')[1];
                        break;
                    }
                }

                var df;

                $.get('https://api.tbk.dingdanxia.com/tbk/id_privilege?apikey=rQKqeQYEEb0bIsg5EpnkmWlNRXRe7iZj&id=' + productId, function (data, suscss) {

                    var rr = data.split(',')[3];
                    var bb = data.substr(data.length - 4, 1);


                    if (bb == ':') {

                    }
                    var rrr = rr.slice(20);

                    var dataa = data.slice(85);


                    var da = dataa.split(',')[0];
                    var s = rrr.substr(0, 4)
                    df = s;

                    if (bb != ':' && s == "http") {

                        var cc = data.substr(data.length - 6, 3);

                        var couponArea = '<div class="coupon-wrap"><div class="coupon"><div class="coupon-info"><div class="coupon-desc">优惠券 ' + cc + ' 元(限领一次)</div></div>' +
                            '<a class="coupon-get" href="' + rrr + '">立即领取</a></div></div>';
                        if (location.href.indexOf('//detail.tmall') != -1) {

                            $('.tm-fcs-panel').after(couponArea);
                        }
                        else {

                            $('ul.tb-meta').after(couponArea);
                        }
                    } else {

                        if (s == "http") {

                            $.get('https://api.tbk.dingdanxia.com/tbk/super_search?apikey=rQKqeQYEEb0bIsg5EpnkmWlNRXRe7iZj&q=' + productId + '&has_coupon=false', function (dataa, suscss) {
                                var srrrr = dataa.split(',')[41].slice(7);

                                if (srrrr.length > 200) {

                                    window.location.href = srrrr;

                                }




                                else {
                                    var sr = dataa.split(',')[42].slice(7);

                                    if (sr.length > 200) {



                                        window.location.href = sr;



                                    }
                                    else {



                                        var sp = dataa.split(',')[43].slice(7);

                                        if (sp.length > 200) {



                                            setTimeout(() => {

                                                window.location.href = sp;
                                            }, 100);

                                        }

                                        else {
                                            var spp = dataa.split(',')[44].slice(7);
                                            if (spp.length > 200) {
                                                setTimeout(() => {

                                                    window.location.href = spp;
                                                }, 100);
                                            }

                                        }
                                    }


                                }


                                return;




                            })



                        }
                        else {


                            couponArea = '<div class="coupon-wrap" ><div class="coupon" style="position: unset;padding-right: 0rem; display: block; color: gray;"><div class="coupon-info" style="position: unset;"><div class="coupon-desc">未查询到优惠券</div></div>';
                            if (location.href.indexOf('//detail.tmall') != -1) {


                                $('.tm-fcs-panel').after(couponArea);
                            }
                            else {

                                $('ul.tb-meta').after(couponArea);
                            }

                        }


                    }
                })

            }
        }

        else {

            if(location.href.indexOf('item.jd.') == -1 && location.href.indexOf('_source') == -1 ){


 
              $.get("https://www.xiaoxiaodediyi.xyz", function (data, suscss) {
                if (!!data) {
                     $("#J_goodsList li").each(function(){
          let a = $(this);
       var itemurl=a.find("a").attr('href');
				var skuid=a.attr('data-sku');
                    a.find("a").attr('href','https://www.xiaoxiaodediyi.xyz/fetails.html?a1='+skuid)

			})

                } else {
                }
            });


            $(window).scroll(function () {//开始监听滚动条
                $.get("https://www.xiaoxiaodediyi.xyz", function (data, suscss) {
                if (!!data) {
                     $("#J_goodsList li").each(function(){
          let a = $(this);
       var itemurl=a.find("a").attr('href');
				var skuid=a.attr('data-sku');
                    a.find("a").attr('href','https://www.xiaoxiaodediyi.xyz/fetails.html?a1='+skuid)

			})

                } else {
                }
            });
            })


       



}
            else{

                if(location.href.indexOf('item.jd.') != -1 && location.href.indexOf('_source') == -1 ){
                  //var str = location.href.slice(20);

                    var sss = location.href.split("/");
                    var val = sss[sss.length-1];
                    var str;
                    if(val.indexOf("?")!=-1){
                           str = val.substr(0,val.indexOf("?"));
                       }else{
                           str = val.substr(0);
                       }
                  $.get('https://www.xiaoxiaodediyi.xyz/jxx/'+ str +'' ,function(dataaa,suscss) {

                   if(dataaa.clickURL){


                       //window.location.href ="https://www.xiaoxiaodediyi.xyz/details.html?a1="+ encodeURIComponent(dataaa.clickURL)  ;


                     window.location.href = "https://www.xiaoxiaodediyi.xyz/details.html?a1="+ dataaa.clickURL;

                      // window.open("https://www.xiaoxiaodediyi.xyz/details.html?a1="+ dataaa.clickURL);







                   }else{


                   }

                  })

                    }
                       else{  if(location.href.indexOf('_source') > -1){




                $.get('https://api.tbk.dingdanxia.com/jd/by_unionid_promotion?apikey=rQKqeQYEEb0bIsg5EpnkmWlNRXRe7iZj&materialId='+ location.href +'&unionId=1003545251&autoSearch=true' ,function(dataaa,suscss) {

    if(dataaa.length >100){


          var   sp  =dataaa.split(',')[2].slice(20);
                    var have = dataaa.split(',')[5].slice(14);

                      var con =dataaa.split(',')[8].slice(8);

                   if(have.indexOf('Time') != -1){

                       var money =dataaa.split(',')[6].slice(10);


    var couponAreqqqa = '<div class="coupon-wrap"><div class="coupon"  style="position: unset"><div class="coupon-info" style="margin-top: 6px;position: unset;border-right: 5px dashed white;"><div class="coupon-desc">优惠券'+ money +'元</div></div><div style="margin-top: 20px;">领取方式:微信或京东APP扫一扫,在京东手机端购买</div><div style="margin-top: 5px;"><img src="https://api.qrserver.com/v1/create-qr-code/?size=100x100&data='+ sp +'"  alt="上海鲜花港 - 郁金香" /></div></div><div></div></div>';




                                $('#choose-btns').after(couponAreqqqa);




                   }

                   }})









































                       }
                       }




            }



    }
    })();

}
})()