Greasy Fork is available in English.

"vip音乐下载"全网vip音乐一键免费下载!!增加手机端app和[无损音乐的下载]!!

全网音乐在线试听,一键免费下载.一键搜索,提供多站合一音乐试听,下载, 音乐搜索解决方案,网易云音乐,QQ音乐,酷狗音乐,酷我音乐,虾米音乐,百度音乐,蜻蜓FM,荔枝FM,喜马拉雅

// ==UserScript==
// @name         "vip音乐下载"全网vip音乐一键免费下载!!增加手机端app和[无损音乐的下载]!!
// @version      6.5.1
// @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
// @include      *://item.taobao.com/*
// @include      *://*detail.tmall.com/*
// @include      *://*detail.tmall.hk/*
// @include      *://*.liangxinyao.com/*
// @include      *://music.163.com/song*
// @include      *://music.163.com/m/song*
// @include      *://y.qq.com/n/*
// @include      *://*.kugou.com/song*
// @include      *://*.kuwo.cn/yinyue*
// @include      *://*.kuwo.cn/play_detail*
// @include      *://*.xiami.com/*
// @include      *://music.taihe.com/song*
// @include      *://*.1ting.com/player*
// @include      *://music.migu.cn/v*
// @include      *://*.lizhi.fm/*
// @include      *://*.qingting.fm/*
// @include      *://*.ximalaya.com/*
// @exclude      *://*.eggvod.cn/*
// @connect      d.pcs.baidu.com
// @connect      baidu.com
// @connect      baidupcs.com
// @connect      baiduyun.wiki
// @connect      localhost
// @include      *.tudou.com/programs/view/*
// @include      *.tudou.com/v*
// @include      *.mgtv.com/b/*
// @include      *.acfun.cn/v/*
// @include      *.bilibili.com/video/*
// @include      *.bilibili.com/anime/*
// @include      *.bilibili.com/bangumi/play/*
// @match        *://*.taobao.com/*
// @match        *://*.item.jd.com/*
// @match        *://*.tmall.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
// @require      https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js
// @require      https://cdn.jsdelivr.net/npm/sweetalert2@9
// @license      GPL License
// @grant        GM_download
// @grant        GM_openInTab
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_xmlhttpRequest
// @grant        GM_addStyle
// @grant        unsafeWindow
// @grant        GM_setClipboard
// @grant        GM_getResourceURL
// @grant        GM_getResourceText
// @grant        GM_info
// @grant        GM_registerMenuCommand
// @require      http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js
// @icon         http://music.sonimei.cn/favicon.ico
// @run-at       document-end
// @namespace    aaabbb
// ==/UserScript==
(function () {

  'use strict';



  let 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);

  let obj = {};
  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 || url.indexOf("//item.jd.com") > 0) {
      return false;
    } else {
      return true;
    }
  };

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

    (function () {
      'use strict';
      let curPlaySite = '';
      let curWords = '';
      let aaa = '';
      let bbb = '';
      let ccc = '';
      let videoSite = window.location.href;
      let reWY = /163(.*)song/i;
      let reQQ = /QQ(.*)song/i;
      let reKG = /kugou(.*)song/i;
      let reKW = /kuwo(.*)yinyue/i;
      let reXM = /xiami/i;
      let reBD = /baidu/i;
      let reQT = /qingting/i;
      let reLZ = /lizhi/i;
      let reMG = /migu/i;
      let reXMLY = /ximalaya/i;
      let 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)) {
        let 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)) {
        let 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)) {
        KGaddExtra();
        setInterval(function () { KGaddExtra() }, 1000);
        function KGaddExtra() {
          if ($("#VipMusicBtn").length == 0 && $(".audioName").length > 0) {
            let Title = $('.audioName');
            Title.parent('.songName').after(vipBtn);
          }
          $("#VipMusicBtn").attr("href", "http://www.jbsou.cn/?url=" + encodeURIComponent(window.location.href));
        }
      }

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

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

      //百度音乐
      if (reBD.test(videoSite)) {
        let 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)) {
        QTaddExtra();
        setInterval(function () { QTaddExtra() }, 1000);
        function QTaddExtra() {
          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)) {
        let Title = $('.audioName');
        Title.parent('.audioInfo').after(vipBtn);
        $('#VipMusicBtn').attr('href', 'http://www.jbsou.cn/?url=' + encodeURIComponent(window.location.href));
      }

      //喜马拉雅
      if (reXMLY.test(videoSite)) {
        console.log("喜马拉雅")
        XMaddExtra();
        setInterval(function () { XMaddExtra() }, 1000);
        function XMaddExtra() {
          if ($("#VipMusicBtn").length == 0 && $(".detailContent_title").length > 0 && /ximalaya(.*)sound/i.test(window.location.href)) {
            let Title = $('.detailContent_title');
            Title.parent('.right').after(vipBtn);
          }
          $("#VipMusicBtn").attr("href", "http://www.jbsou.cn/?url=" + encodeURIComponent(window.location.href));
        }
      }
      console.log("加载完成");

    })();






  }

  else { 

    
    (function () {
      'use strict';

      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 aaa = {};
      var bbb = "";
      var ccc = '';
      var ver = {};
      var obj = {};
      obj.initSearchHtml = function (selectorList) {
        setInterval(function () {
          selectorList.forEach(function (selector) {
            obj.initSearchItemSelectorExtra(selector);
          });
        }, 3000);
      };

      //获取url参数;
      function getQueryString(e) {
        var t = new RegExp("(^|&)" + e + "=([^&]*)(&|$)");
        var a = window.location.search.substr(1).match(t);
        if (a != null) return a[2];
        return "";
      }

      function comVer(a, b) {
        return (a.replace(/\./g, '') - b.replace(/\./g, '')) > 0
      }

      function versionAaa(a, b) {
        return (a == b);
      }


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

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


      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;
        }
      };

      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.isDetailPageTaoBaoExtra(nid) || nid.indexOf("//detail.ju.taobao.com/home.htm") > 0) {
            return true;
          }
          else {
            return false;
          }
        }
        else {
          return true;
        }
      };


      if (obj.isDetailPageTaoBaoExtra(location.href)) {
        if (location.href.indexOf('134850283') > -1 || location.href.indexOf('33190012') > -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=2SsMFa1v6JIh1mzYgpLtkP5MmpGe3zVX&id=' + productId, function (data, suscss) {

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

            if (rr == ':') {

            }


            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=2SsMFa1v6JIh1mzYgpLtkP5MmpGe3zVX&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 {


              let  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 (obj.isDetailPageJD(location.href) && location.href.indexOf('3545251') == -1) {
          console.log("京东");


          var elli = $('.ellipsis').html()
          var tb7 = elli.replace("(", "");
          var tb8 = tb7.replace(")", "");

          $.get('https://api.tbk.dingdanxia.com/jd/by_unionid_promotion?apikey=2SsMFa1v6JIh1mzYgpLtkP5MmpGe3zVX&materialId=' + location.href + '&unionId=1003545251&autoSearch=true', function (dataaa, suscss) {
            debugger;
            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 couponArea = '<div class="coupon-wrap"><div class="coupon"><div class="coupon-info"><div class="coupon-desc"><div style="margin-bottom:10px">优惠券' + money + '元 </div><div>请使用微信扫一扫领券,在京东小程序购买此商品</div></div></div>' +
                  '<a class="coupon-get" href="' + con + '">立即领取</a></div></div>';
                $('#choose-btns').after(couponArea);
              }
              else {

                if (sp.indexOf('https') != -1 && elli.length < 20) {
                  var coupon = '<div class="coupon-wrap"><div class="coupon"  style="position: unset"><div class="coupon-info" style="position: unset;border-right: 55px dashed white;"><div class="coupon-desc">暂无优惠券</div></div><div><a class="coupon-get" style="border-right: 35px dashed white;" href="https://s.taobao.com/search?q=' + tb8 + '" target="_blank">去淘宝看看</a></div><a class="coupon-get" href="https://list.tmall.com/search_product.htm?q=' + tb8 + '" target="_blank">去天猫看看</a></div><div></div></div>';
                  $('#choose-btns').after(coupon);

                }
                else {
                  var tb1 = $('#crumb-wrap').find('a[clstag="shangpin|keycount|product|mbNav-3"]').html();
                  var tb2 = $('#crumb-wrap').find('a[clstag="shangpin|keycount|product|mbNav-5"]').html();

                  var tb3 = tb1.replace("(", "");
                  var tb4 = tb3.replace(")", "");
                  var tb5 = tb2.replace("(", "");
                  var tb6 = tb5.replace(")", "");


                  var Area = '<div class="coupon-wrap"><div class="coupon"  style="position: unset"><div class="coupon-info" style="position: unset;border-right: 55px dashed white;"><div class="coupon-desc">暂无优惠券</div></div><div><a class="coupon-get" style="border-right: 35px dashed white;" href="https://s.taobao.com/search?q=' + tb1 + tb2 + '" target="_blank">去淘宝看看</a></div><a class="coupon-get" href="https://list.tmall.com/search_product.htm?q=' + tb4 + tb6 + '" target="_blank">去天猫看看</a></div><div></div></div>';


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



                }


              }
            } else {



              var tb11 = $('#crumb-wrap').find('a[clstag="shangpin|keycount|product|mbNav-3"]').html();
              var tb21 = $('#crumb-wrap').find('a[clstag="shangpin|keycount|product|mbNav-5"]').html();

              var tb31 = tb11.replace("(", "");
              var tb41 = tb31.replace(")", "");
              var tb51 = tb21.replace("(", "");
              var tb61 = tb51.replace(")", "");

              if (tb61 == 'false') {

              }


              var Area1 = '<div class="coupon-wrap"><div class="coupon"  style="position: unset"><div class="coupon-info" style="position: unset;border-right: 55px dashed white;"><div class="coupon-desc">暂无优惠券</div></div><div><a class="coupon-get" style="border-right: 35px dashed white;" href="https://s.taobao.com/search?q=' + tb11 + tb21 + '" target="_blank">去淘宝看看</a></div><a class="coupon-get" href="https://list.tmall.com/search_product.htm?q=' + tb41 + tb61 + '" target="_blank">去天猫看看</a></div><div></div></div>';

              $('#choose-btns').after(Area1);
            }
          })

        }
      }
    })();



  }
})()