Greasy Fork is available in English.

【2018年8月27日更新】全网VIP视频在线解析破解去广告,全网音乐下载,淘宝、拼多多、京东购物优惠券领取,支持商品比价,查询历史价格

全网VIP视频在线解析破解去广告,淘宝天猫隐藏优惠券,领取拼多多隐藏优惠券,全网音乐一键免费下载 一键搜索 在线试听

2018-08-27 14:10:45 UTC itibariyledir. En son verisyonu görün.

// ==UserScript==
// @name         【2018年8月27日更新】全网VIP视频在线解析破解去广告,全网音乐下载,淘宝、拼多多、京东购物优惠券领取,支持商品比价,查询历史价格
// @namespace    http://www.17gouwu.cn/
// @version      2.2
// @description  全网VIP视频在线解析破解去广告,淘宝天猫隐藏优惠券,领取拼多多隐藏优惠券,全网音乐一键免费下载 一键搜索 在线试听
// @author       一起购物
// @require      https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js
// @match        *://v.qq.com/x/cover/*
// @match        *://v.qq.com/x/page/*
// @match        *://v.youku.com/v_show/*
// @match        *://*.iqiyi.com/v_*
// @match        *://*.iqiyi.com/dianying/*
// @match        *://*.mgtv.com/b/*
// @match        *://*.le.com/ptv/vplay/*
// @match        *://film.sohu.com/album/*
// @match        *://tv.sohu.com/*
// @match        *://v.pptv.com/show/*
// @match        *://v.yinyuetai.com/video/*
// @match        *://v.yinyuetai.com/playlist/*
// @match        *://*.wasu.cn/Play/show/*
// @match        *://*.tudou.com/listplay/*
// @match        *://*.tudou.com/v/*
// @match        *://*.tudou.com/albumplay/*
// @match        *://*.tudou.com/programs/view/*
// @match        *://item.taobao.com/*
// @match        *://detail.tmall.com/*
// @match        *://detail.tmall.hk/*
// @match        *://s.taobao.com/*
// @match        *://ai.taobao.com/search/*
// @match        *://list.tmall.com/*
// @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/*
// @grant  GM_xmlhttpRequest
// @connect api.ganfl.com
// ==/UserScript==

(function() {
    'use strict';
    var curPlaySite = '';
    var curWords = '';
    var videoSite = window.location.href;
    var YK_RE = /youku/i;
    var AQY_RE = /iqiyi/i;
    var LS_RE = /le/i;
    var TX_RE = /qq/i;
    var TD_RE = /tudou/i;
    var MG_RE = /mgtv/i;
    var SH_RE = /sohu/i;
    var AF_RE = /acfun/i;
    var BL_RE = /bilibili/i;
    var YJ_RE = /1905/i;
    var PP_RE = /pptv/i;
    var YYT_RE = /yinyuetai/i;
    var TB_RE = /taobao/i;
    var TM_RE = /tmall/i;
    var WYYY_RE = /163(.*)song/i;
    var QQYY_RE = /QQ(.*)song/i;
    var KGYY_RE = /kugou(.*)song/i;
    var KWYY_RE = /kuwo(.*)yinyue/i;
    var XMYY_RE = /xiami/i;
    var BDYY_RE = /baidu/i;
    var QTYY_RE = /qingting/i;
    var LZYY_RE = /lizhi/i;
    var MGYY_RE = /migu/i;
    var XMLYYY_RE = /ximalaya/i;


    var intervalId=null;var ischeck=false;var queryyhq="";
    // 腾讯
    if(WYYY_RE.test(videoSite)||QQYY_RE.test(videoSite)||KGYY_RE.test(videoSite)||KWYY_RE.test(videoSite)||XMYY_RE.test(videoSite)||BDYY_RE.test(videoSite)||QTYY_RE.test(videoSite)||LZYY_RE.test(videoSite)||MGYY_RE.test(videoSite)||XMLYYY_RE.test(videoSite)||YK_RE.test(videoSite)||AQY_RE.test(videoSite)||LS_RE.test(videoSite)||TX_RE.test(videoSite)||TD_RE.test(videoSite)||MG_RE.test(videoSite)||SH_RE.test(videoSite)||AF_RE.test(videoSite)||BL_RE.test(videoSite)||YJ_RE.test(videoSite)||PP_RE.test(videoSite)||YYT_RE.test(videoSite)){
        var sidenav = '<div class="aside-nav bounceInUp animated" id="aside-nav"><label for="" class="aside-menu" title="\u574f\u6deb\uff0c\u6309\u4f4f\u9f20\u6807\u5c31\u53ef\u4ee5\u62d6\u52a8\u6211\u5566\u0028\u273a\u03c9\u273a\u0029">戳我!</label><a href="javascript:void(0)" title="\u4eb2\u7231\u7684\uff0c\u4eca\u5929\u60f3\u770b\u70b9\u4ec0\u4e48\u5462\uff1f\u0028\u002a\u2579\u25bd\u2579\u002a\u0029" data-cat="search" class="menu-item menu-line menu-first">\u7535\u5f71<br>\u641c\u7d22</a><a href="javascript:void(0)" title="\u6ca1\u9519\uff0c\u5c31\u662f\u70b9\u6211\uff0c\u5c31\u53ef\u4ee5\u514d\u8d39\u64ad\u653e\u0056\u0049\u0050\u89c6\u9891\u4e86\u54e6\uff1f\u6211\u5389\u5bb3\u5417\u0028\u3003\u0026\u0023\u0033\u0039\u003b\u25bd\u0026\u0023\u0033\u0039\u003b\u3003\u0029" data-cat="process" class="menu-item menu-line menu-second">\u514d\u0056\u0049\u0050<br>\u64ad\u653e</a><a href="javascript:void(0)" title="\u4eb2\u7231\u7684\uff0c\u0020\u544a\u8bc9\u4f60\u54df\uff0c\u6211\u53ef\u4ee5\u514d\u8d39\u9886\u6dd8\u5b9d\u5929\u732b\u5927\u989d\u4f18\u60e0\u5238\uff0c\u7acb\u7701\u0038\u0030\u0025\uff0c\u8981\u8d2d\u7269\uff0c\u5148\u70b9\u6211\u9886\u5238\u5427\uff01\u2727\u0028\u2256\u0020\u25e1\u0020\u2256\u273f\u0020" data-cat="tb" class="menu-item menu-line menu-third">\u5927\u989d<br>\u795e\u5238</a><a href="javascript:void(0)" title="\u4e0b\u8f7d\u97f3\u4e50\u8fd8\u8981\u0056\u0049\u0050\u0028\u25bc\u30d8\u25bc\u0023\u0029\uff1f\u6211\u53c8\u53ef\u4ee5\u5e2e\u5230\u4f60\u5566\uff0c\u597d\u5f00\u68ee\u007e\u007e\u0669\u0028\u0e51\u275b\u1d17\u275b\u0e51\u0029\u06f6" data-cat="music" class="menu-item menu-line menu-fourth">\u97f3\u4e50<br>\u641c\u7d22</a><a href="javascript:void(0)" title="\u773c\u8981\u75be\uff0c\u624b\u8981\u5feb\uff0c\u770b\u597d\u7684\u6298\u6263\u5c3d\u5feb\u4e0b\u624b\uff0c\u5238\u771f\u7684\u4e0d\u591a\u002e\u002e\u002e\u10da\u0028\u2032\u25c9\u2765\u25c9\uff40\u10da\u0029" data-cat="jingxuan" class="menu-item menu-line menu-fifth">\u6bcf\u65e5<br>\u7cbe\u9009</a><a href="javascript:void(0)" title="\u5982\u679c\u4f7f\u7528\u4e0a\u6709\u4ec0\u4e48\u95ee\u9898\u002c\u8bf7\u70b9\u51fb\u8fd9\u91cc\u53cd\u9988\u5427\u002e\u002e\u6216\u8005\u52a0\u0051\u7fa4\u0032\u0038\u0030\u0031\u0039\u0037\u0033\u0030\u0032" data-cat="help" class="menu-item menu-line menu-sixth">\u5e2e\u52a9<br>\u8bf4\u660e</a></div>';
        $("body").append(sidenav).append($('<link rel="stylesheet" href="//dy.51yfx.com/static/css/videoparse.css?v=0.2">'));
        var ua = navigator.userAgent;
        /Safari|iPhone/i.test(ua) && 0 == /chrome/i.test(ua) && $("#aside-nav").addClass("no-filter");
        var drags = { down: !1, x: 0, y: 0, winWid: 0, winHei: 0, clientX: 0, clientY: 0 }, asideNav = $("#aside-nav")[0], getCss = function (a, e) { return a.currentStyle ? a.currentStyle[e] : document.defaultView.getComputedStyle(a, !1)[e] };
        $("#aside-nav").on("mousedown", function (a) {
            drags.down = !0, drags.clientX = a.clientX, drags.clientY = a.clientY, drags.x = getCss(this, "right"), drags.y = getCss(this, "top"), drags.winHei = $(window).height(), drags.winWid = $(window).width(), $(document).on("mousemove", function (a) {
                if (drags.winWid > 640 && (a.clientX < 120 || a.clientX > drags.winWid - 50))
                    return !1;
                if (a.clientY < 180 || a.clientY > drags.winHei - 120)
                    return !1;
                var e = a.clientX - drags.clientX,
                    t = a.clientY - drags.clientY;
                asideNav.style.top = parseInt(drags.y) + t + "px";
                asideNav.style.right = parseInt(drags.x) - e + "px";
            })
        }).on("mouseup", function () {
            drags.down = !1, $(document).off("mousemove")
        });
        $('body').on('click', '[data-cat=process]', function () {
            window.open('http://jx.51yfx.com/?url=' + videoSite);
        });
        $('body').on('click', '[data-cat=search]', function () {
            window.open('http://dy.51yfx.com/');
        });
        $('body').on('click', '[data-cat=tb]', function () {
            window.open('http://www.ganfl.com/');
        });
        $('body').on('click', '[data-cat=music]', function () {
            window.open('http://music.51yfx.com?url='+encodeURIComponent(videoSite));
        });
        $('body').on('click', '[data-cat=jingxuan]', function () {
            window.open('http://www.ganfl.com/jingxuan');
        });
        $('body').on('click', '[data-cat=help]', function () {
            window.open('http://www.ganfl.com/?m=article&a=read&id=2');
        });
    }

    //淘宝
    if(TB_RE.test(videoSite)||TM_RE.test(videoSite)){
        var host = window.location.host;
        var productNm = '';
        var url = "http://www.ganfl.com/?m=search&a=index&k=";
        var urll = "http://www.ganfl.com/jump/index/id/";
        var label = "领取优惠券(一)";

        var cssSelector = '';

        if (host.indexOf('item.taobao.com') >= 0) {
            productNm = $.trim($('.tb-main-title').text());
            cssSelector = '.tb-action';
        } else if (host.indexOf('detail.tmall.com') >= 0) {
            productNm = $.trim($('.tb-detail-hd h1').text());
            cssSelector = '.tb-action';
        }else if (host.indexOf('list.tmall.com') >= 0) {

            $.each($(".product-iWrap"),function(index){
                productNm = $.trim($(this).find(".productTitle").text());
                $(this).find(".productTitle").after('<div class="div-inline"><div class="tb-btn-buy tb-btn-sku"  style="padding-top:11px;"><a href="' + url + encodeURI(productNm) + '" target="_blank">领取优惠券</a></div></div>');

            })
            $(".div-inline").find("a").css({"font-size":"20px","color":"red"})
        }else if (host.indexOf('s.taobao.com') >= 0) {
            intervalId=setInterval(function(){
                sTao();
            },1000);

        }else if (host.indexOf('ai.taobao.com') >= 0) {
            intervalId=setInterval(function(){
                aiTao();
            },1000);
        }
        var goodsid=GetUrlParam("id");
        AlibabaAppendHtml( url, productNm, label, urll, goodsid,$(cssSelector))

    }
    function aiTao(){

        $(".title").each(function(){
            console.info();
            productNm = $(this).children("a:first").text();
            $(this).after('<p style=" text-align: center; "><a style=" color: red; font-size: 20px; " href="' + url + encodeURI(productNm) + '" target="_blank">领取优惠券</a></p>');
            ischeck=true;
        });
        if(ischeck){clearInterval(intervalId)}
    }
    function sTao(){
        $.each($(".J_MouserOnverReq"),function(index){
            productNm = $.trim($(this).find(".title").text());
            $(this).find(".title").after('<p style=" text-align: center; "><a style=" color: red; font-size: 20px; " href="' + url + encodeURI(productNm) + '" target="_blank">领取优惠券</a></p>');

            ischeck=true;
        });
        if(ischeck){clearInterval(intervalId)}
    }

    function queryData(goodID) {
        var cgoodTitle = document.title+"";
        var ret = GM_xmlhttpRequest({
            method: "GET", url: "http://api.ganfl.com/index/index?iid=" + goodID,
            onload: function (res) {
                res = JSON.parse(res.responseText);
                console.info(res);
                if(res.status==1){
                    console.info("success");
                    queryyhq= "领¥"+res.data+"元优惠券";
                }else{
                    console.info("error");
                    queryyhq= "查同类商品";
                }
            }
        });
    }
    function AlibabaAppendHtml( url, productNm, label, urll,goodsid,cssSelector) {
        queryData(goodsid);

        var tt = setInterval(function () {

            if ( queryyhq!="") {
                clearInterval(tt);
                if (videoSite.indexOf('taobao.com') > 0) {
                    if(queryyhq=="查同类商品"){
                        $(cssSelector).append('<div class="div-inline"><div class="tb-btn-buy" style="padding-top:11px;"><a href="' + url + encodeURI(productNm) + '" target="_blank">' + label + '</a></div></div> <div class="div-inline"><div class="tb-btn-add" style="padding-top:11px;"><a href="http://www.ganfl.com/jingxuan" target="_blank">每日精选</a></div></div>');
                    }else{
                        $(cssSelector).append('<div class="div-inline"><div class="tb-btn-buy" style="padding-top:11px;"><a href="' + url + encodeURI(productNm) + '" target="_blank">' + label + '</a></div></div> <div class="div-inline"><div class="tb-btn-add" style="padding-top:11px;"><a href="' +  urll + goodsid + '.html" target="_blank">' + queryyhq + '</a></div></div>');
                    }

                } else if (videoSite.indexOf('tmall.com') > 0) {
                    if(queryyhq=="查同类商品"){
                        $(cssSelector).append('<div class="div-inline"><div class="tb-btn-buy tb-btn-sku"  style="padding-top:11px;"><a href="' + url + encodeURI(productNm) + '" target="_blank">' + label + '</a></div></div> <div class="div-inline"><div class="tb-btn-basket tb-btn-sku " style="padding-top:11px;"><a href="http://www.ganfl.com/jingxuan" target="_blank">每日精选</a></div></div>');
                    }else{
                        $(cssSelector).append('<div class="div-inline"><div class="tb-btn-buy tb-btn-sku"  style="padding-top:11px;"><a href="' + url + encodeURI(productNm) + '" target="_blank">' + label + '</a></div></div> <div class="div-inline"><div class="tb-btn-basket tb-btn-sku " style="padding-top:11px;"><a href="' +  urll + goodsid + '.html" target="_blank">' + queryyhq + '</a></div></div>');
                    }

                } else if (videoSite.indexOf('jd.com') > 0) {
                    $(cssSelector).append( '<a class="btn-special1 btn-lg" href="' + url + encodeURI(productNm) + '" target="_blank">' + label + '</a>');
                }
            }
        }, 50);
        var host = window.location.host;
        if (host.indexOf('item.taobao.com') >= 0||host.indexOf('detail.tmall.com') >= 0) {
            timerDoOnce("body", function(){
                var s = document.createElement('script');
                s.setAttribute('src','https://shared-https.ydstatic.com/gouwuex/ext/script/extension_3_1.js?vendor=youdao&browser=firefox');
                s.setAttribute('charset','utf-8');
                document.body.appendChild(s);
            }, 200);
            timerDoOnce(".hui-link", function(){
                var node = document.querySelector(".hui-link"); // 移除多余的广告标签
                while(node.tagName != "LI"){
                    node = node.parentNode;
                }
                node.remove();
                document.querySelector(".hui-qrcode-container").innerHTML = "关注敢返利公众号 <p>手机比价、领券一站完成</p> <img src='//wx2.sinaimg.cn/mw690/0060lm7Tly1fun1l7t40hj3076076wex.jpg'>";
                $(".hui-show-long").css("min-height","0px");
                document.querySelector("a[clkaction='BAR_ONEKEY_MOD_CLICK'] div, a[clkaction='BAR_ONEKEY_MOD_CLICK_B'] div").innerHTML = "每日最热";
                document.querySelector("a[clkaction='BAR_ONEKEY_MOD_CLICK'], a[clkaction='BAR_ONEKEY_MOD_CLICK_B']").setAttribute("href", "http://www.ganfl.com/jingxuan");
                document.querySelector("a[clkaction='BAR_DEAL_MOD_CLICK']").setAttribute("href", "http://www.ganfl.com/quan");
                document.querySelector("a[clkaction='BAR_COUPON_MOD_CLICK']").setAttribute("href", "http://www.ganfl.com/");
                document.querySelector("a[clkaction='BAR_LEMALL_AD_CLICK']").setAttribute("href", "http://www.ganfl.com/");
            }, 200);
            setInterval(function(){
                var node = document.querySelector(".youdaoGWZSTestCss").nextSibling.firstChild;
                if(node != null){

                    node.style = "top:0px;";

                }
            }, 50);
            addStyle(".hui-show-long{min-height:unset !important;margin-top: -12px;}.hui-js-close-plugin+li>div{display:none;}body{margin-top:60px !important;}div[style='z-index: 2147483647; position: fixed;']>div>table{top:0px;position: fixed;z-index: 23333333;background-color: white;}div[style='z-index: 2147483647; position: fixed;']>div{bottom:unset;}div[style='z-index: 2147483647; position: fixed;']>div>table td:nth-child(3){display:none}");

        }

    }

    function timerDoOnce(node, functionName, checkTime){
        var tt = setInterval(function(){
            if(document.querySelector(node) != null) {
                clearInterval(tt);
                functionName();
            }
        }, checkTime);
    }
    function addStyle(css) {
        var pi = document.createProcessingInstruction(
            'xml-stylesheet',
            'type="text/css" href="data:text/css;utf-8,' + encodeURIComponent(css) + '"'
        );
        return document.insertBefore(pi, document.documentElement);
    }
    function GetUrlParam(paraName) {
        var url = window.location.href;
        var arrObj = url.split("?");

        if (arrObj.length > 1) {
            var arrPara = arrObj[1].split("&");
            var arr;

            for (var i = 0; i < arrPara.length; i++) {
                arr = arrPara[i].split("=");

                if (arr != null && arr[0] == paraName) {
                    return arr[1];
                }
            }
            return "";
        }
        else {
            return "";
        }
    }

})();