yhqfz

yhq

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://greasyfork.org/scripts/394702-yhqfz/code/yhqfz.js?version=778121

function kuaisearch() {
    var lian = "https://www.dadiyouhui02.cn/index.php?input=2&r=l&kw=" + $('.search-combobox-input').val();
    window.open(lian);
}

function gosearch() {
    var lian = "https://www.dadiyouhui02.cn/index.php?input=2&r=l&kw=" + $('#J_Header_js').val();
    window.open(lian);
}

function tiansearch() {
    var lian = "https://www.dadiyouhui02.cn/index.php?input=2&r=l&kw=" + $('.s-combobox-input').val();
    window.open(lian);
}


function dataquan(data) {
	var goodid = data.indexOf("goodsItem");
	if (goodid < 0) return 0;
	var en_str = data.substr(goodid);
	var goodid2 = en_str.indexOf(";");
	en_str=data.substr(goodid+11,goodid2-11);

	return en_str;
}
var zkdnever='<meta name="referrer" content="never">';
function xiugai(name) {
    var tb = /taobao.com/i;
    var tm = /tmall/i;
    var currentUrl = window.location.href;
    $('head').append($('<link rel="stylesheet" href="https://www.dadiyouhui02.cn/zkq4tb.css">'));



    var init = "<div id='zkq_div'><table class='zkq_tab' id='zkq_table'><thead><tr><th><b style='cursor:pointer'>\u4f18\u60e0\u5238</b></th><th>\u5238\u540E</th><th>\u6709 \u6548 \u671F</th><th>\u64cd\u4f5c\u261f</th></tr></thead><tbody><tr><td colspan='4' onclick=\"window.location.href='http://q.dadiyouhui.cn/index.php?r=index/classify&kw=" + encodeURI(name)+"';\">\u6B63\u5728\u67E5\u8BE2\u4F18\u60E0\u4FE1\u606F\uFF0C\u8BF7\u7A0D\u5019...</td></tr></tbody></table></div>";
    $('#J_LinkBasket').parent().parent().prepend(init);
    $('.J_LinkAdd').parent().parent().prepend(init);
    if (tb.test(currentUrl)) {
        $('#zkq_table').addClass('zkq_tab_taobao');
    } else {
        $('#zkq_table').addClass('zkq_tab_tmall');
    }
   var  zzxcvsdid=/(?:&|\?)id=(\d{10,13})/.exec(window.location.href);
           var  zzxcvsdiw="https://www.dadiyouhui02.cn/";
           var  zzxcvsdiz="test_gaoyongtb.php?item=";
      $.getJSON(zzxcvsdiw+zzxcvsdiz+zzxcvsdid[1], function(data){
        $("#zkq_table tbody tr").remove();
		var tb = /taobao.com/i;
    var tm = /tmall/i;
    var currentUrl = window.location.href;
	var name='';
	if (tb.test(currentUrl)) {
	name = $('.tb-main-title').attr('data-title');
	} else {
	name= $('meta[name=keywords]').attr('content');
	}


var qundata= data;

    var zkdtbuul = 'http://q.dadiyouhui.cn/tbapp/index/lingtb.php?id=' + zzxcvsdid[1];

		if ( qundata["code"]==0) {
				if ( qundata["s"]==1) {
		row += "<tr><td  style='font-size: 14px;font-weight:bold;'>" +  qundata["coupon_info"] + "</td><td style='font-size: 14px;font-weight:bold;'>" + qundata["qhj"] + "</td><td style='font-size: 14px;'>" +  qundata["coupon_end_time"] + "</td><td><a style='display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:2px;color: #fff;background-color: red;' onclick=\"window.location.href='"+zkdtbuul+"';\" target='_blank'>领取</a><a id='zktb'>.</a></td></tr>";
			}else{
				row += "<tr><td colspan='4' onclick=\"window.location.href='"+decodeURIComponent(qundata["url"])+"';\"><a id='zktb'>点击查看优惠</a></td></tr>";
			
			}
		} else {
        var row = "<tr><td colspan='4'>\u8be5\u5546\u54c1\u6682\u65e0\u4efb\u4f55\u4f18\u60e0<a id='zktb'>.</a></td></tr>";
		}
        $("#zkq_table tbody").append(row);
       });

}

$(document).ready(function(){

var url = location.href;
	var baidspjayumin=document.domain;
	  if( baidspjayumin.indexOf("tmall.com") >= 0|| baidspjayumin.indexOf("taobao.com") >= 0) {
		    if($("#zktb").length<=0  ){
        var idd = '';
        var name = '';
        var host = window.location.host;

        var zkdmmxmi = /(?:&|\?)id=(\d{10,13})/.exec(window.location.href);


        if ($('#max-test').length <= 0 &&  zkdmmxmi) {
            if (host == 'detail.tmall.com') {
                idd = $("link[rel=canonical]").attr("href");
                idd = idd.split("id=")[1];
                name = $('meta[name=keywords]').attr('content');
            var tmall = '<div id="max-test"><p> <br/></p></div><div class="tb-action" style="margin-top:0"><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:2px;color: #fff;background-color: #2e8b57;#2e8b57;" id="zkd_jqlq"  >快捷领取</a><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:5px;color: #fff;background-color: #8600FF;#8600FF;margin-left:5px; " href="http://q.dadiyouhui.cn/index.php?r=p" target="_blank">销量TOP100</a><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:5px;color: #fff;background-color: #2e8b57;#2e8b57;margin-left:5px; " href="http://q.dadiyouhui.cn/my/my.php" target="_blank">个人中心</a></div>';
                $('.tb-sku').append(tmall);
                xiugai(name);
            } else if (host == 'item.taobao.com') {
                idd = $("link[rel=canonical]").attr("href");
                idd = idd.split("id=")[1];
                name = $('.tb-main-title').attr('data-title');
                var taobao = '<div id="max-test"><p> <br/></p></div><div class="tb-action" style="margin-top:0"><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:2px;color: #fff;background-color: #2e8b57;#2e8b57;" id="zkd_jqlq" >快捷领取</a><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:5px;color: #fff;background-color: #8600FF;#8600FF;margin-left:5px; " href="http://q.dadiyouhui.cn/index.php?r=p" target="_blank">销量TOP100</a><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:5px;color: #fff;background-color: #2e8b57;#2e8b57;margin-left:5px; " href="http://q.dadiyouhui.cn/my/my.php" target="_blank">个人中心</a></div>';
                $('.tb-key').append(taobao);
                xiugai(name);
            } else if (host == 'detail.tmall.hk') {
                idd = $("link[rel=canonical]").attr("href");
                idd = idd.split("id=")[1];
                name = $('meta[name=keywords]').attr('content');
                var tmall_xg = '<div id="max-test"><p> <br/></p></div><div class="tb-action" style="margin-top:0"><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:2px;color: #fff;background-color: #2e8b57;#2e8b57;" id="zkd_jqlq" >快捷领取</a><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:5px;color: #fff;background-color: #8600FF;#8600FF;margin-left:5px; " href="http://q.dadiyouhui.cn/index.php?r=p" target="_blank">销量TOP100</a><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:5px;color: #fff;background-color: #2e8b57;#2e8b57;margin-left:5px; " href="http://q.dadiyouhui.cn/my/my.php" target="_blank">个人中心</a></div>';
                $('.tb-sku').append(tmall_xg);
				xiugai(name);
            } else if (host == 'chaoshi.detail.tmall.com') {
                idd = $('a[id=J_AddFavorite]').attr('data-aldurl');
                idd = idd.split("idd=")[1];
                name = $('input[name=title]').attr('value');
                var cs_tmall = '<div id="max-test"><p> <br/></p></div><div class="tb-action" style="margin-top:0"><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:2px;color: #fff;background-color: #2e8b57;#2e8b57;" id="zkd_jqlq" >快捷领取</a><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:5px;color: #fff;background-color: #8600FF;#8600FF;margin-left:5px; " href="http://q.dadiyouhui.cn/index.php?r=p" target="_blank">销量TOP100</a><a style="display: inline-block;padding: 6px 9px;margin-bottom: 0;font-size: 16px;font-weight: normal;height:16px;line-height:16px;width:100px;text-align: center;white-space: nowrap;vertical-align: middle;-ms-touch-action: manipulation;touch-action: manipulation;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;background-image: none;border: 1px solid transparent;border-radius:5px;color: #fff;background-color: #2e8b57;#2e8b57;margin-left:5px; " href="http://q.dadiyouhui.cn/my/my.php" target="_blank">个人中心</a></div>';
                $('.tb-sku').append(cs_tmall);
            }
            $('#max-test').after('<div style="display:none;      text-align: center; position: absolute; left: 0;     right: 0;   margin: 0px auto;   height: 200px;    width: 150px;       z-index: 99999999999;   background: #FFF7F8;   border: 1px solid #F95774;" id="zkdqrscodes_xp"><a  style="background:	#696969; color: #FFF;   font-weight: bold;    display:block; width:150px;height:20px;  " onclick = "document.getElementById(\'zkdqrscodes_xp\').style.display=\'none\';">点击隐藏</a><div  id="zkdqrscode_xp" style="display:none;margin-top: 10px;"></div><div  id="zkdqrscobj_xp" style="left: 0;     right: 0;   margin: 0px auto; background-size:cover; height: 130px;    width: 130px;  margin-top: 10px;"></div><span  style="font-size: 14px;  color: #F95572;   letter-spacing: 0;   font-weight: bold;   float: left;   height: 12px;   line-height: 14px;    width: 100%;   margin-top: 10px; text-align: center;">微信扫码快捷领券</span></div>');

            $('#zkdqrscode_xp').qrcode({width: 130,height: 130,text: 'http://q.dadiyouhui.cn/test_tongji.php?dj='+Number(zkdmmxmi[1]).toString(16)+'&type=1&zkd=t'});
              var zkdewmca=$("#zkdqrscode_xp").find("canvas")[0];
  var zkdsrc_xp=zkdewmca.toDataURL('image/jpeg');
  $("#zkdqrscobj_xp").css({"background-image":"url("+zkdsrc_xp+")","background-size":"100% 100%"});

           $("#zkd_jqlq").click(function(){
if($('#zkdqrscodes_xp').is(':hidden')){
$("#zkdqrscodes_xp").show();
}else{
$("#zkdqrscodes_xp").hide();
}});


$("#zkd_jqlq").mouseover(function(){
	$("#zkdqrscodes_xp").show();
});

        }

        if ($('#max-search').length <= 0) {
            if (host == 'www.taobao.com') {
                var tb_search = '<div id="max-search" style="position: absolute;right: -100px;top: 22px;width: 100px;height: 40px;text-align: center;line-height: 40px;border-radius: 9px;color: #ffffff;background: #FF4200;font-size: 16px;font-weight: 800;"><a id="max-search-a" style="color:white;" href="javascript:void(0);">搜优惠券</a></div>';
                $('.search-bd').append(tb_search);
                $('#max-search-a').click(function() {
                    kuaisearch()
                })
            } else if (host == 's.taobao.com') {
                var stb_search = '<div style="float:right;margin-top:1px;color: #ffffff;background: #FF4200;font-size: 16px;font-weight: 800;width: 130px;height: 30px;text-align: center;line-height: 30px;border-radius: 9px;" id="max-search"><a id="max-search-a" style="color:white;" href="javascript:void(0);">搜优惠券</a></div>';
                $('.search').append(stb_search);
                $('#max-search-a').click(function() {
                    kuaisearch()
                });
            } else if (host == 'www.tmall.com' || host == 'list.tmall.com') {
                var tmall_search = '<div style="float:right;margin-top:1px;color: #ffffff;background: #FF4200;font-size: 16px;font-weight: 800;width: 130px;height: 30px;text-align: center;line-height: 30px;border-radius: 9px;" id="max-search"><a id="max-search-a" style="color:white;" href="javascript:void(0);">搜优惠券</a></div>';
                $('#mallSearch').append(tmall_search);
                $('#max-search-a').click(function() {
                    tiansearch()
                });
            }
        }
}
}

var zkduptime=0;
var zkdtime=Date.parse(new Date())/1000;
var qttjtime=0;
var cace =window.location.href;
var urla=window.location.href;
var zkddomain = document.domain;
var localcsace =0;
var localcgetsace =0;
var lyurl ={};
var asdxym =0;
var zxcsida =0;
var zxcxxcsda =0;
var zxcxxv =0;
var zxchxv =0;
var zxcshxv =0;


var jcsfzksdjds=0;
var jcsfzkdjds=0;
var jcssdus=0;
var jcsxysdus=120;
var jcsxyxdus =0;
var bbgsx={};

var urla=window.location.href;

var dfgdf1=window.location.pathname;
var dfgdf2=window.location.search;
var dfgdf3=dfgdf1+dfgdf2;



dfgdf3 = dfgdf3.replace(/[\?|\/|\&|\=|%|\.]/g,"");


   




 var jcsfzkddds=0;
 if (urla.indexOf("dadiyouhui")<0 && (urla.indexOf("r=l/d&")>0 || urla.indexOf("r=p/d&")>0 || urla.indexOf("classify&kw=")>0)){
$("link[href]").each(function(k,v){
 if(v.href.search("cmsstatic.ffquan.cn")>0 ){
 jcsfzkddds=1;
}
})
if(jcsfzkddds==1 ){
	jcsfzkddds=urla.replace(document.domain,'www.dadiyouhui.cn');
 if (jcsfzkddds.search("https:")>=0 ){
 	 jcsfzkddds=jcsfzkddds.replace('https:','http:');
}
 window.location.href=jcsfzkddds;
}
    }
    

   
    if(zkddomain.indexOf("soquanya.") > 0 ) {
        var sakjjuigoid =urla.match(/id\/(\d{10,13})./);
    
         if (sakjjuigoid){
    window.location.href="http://"+randomaasxString(2)+"."+randomaasxString(2)+".dadiyouhui.cn/test_tongji.php?dj="+Number(sakjjuigoid[1]).toString(16)+"&type=1&zkd=yayams";
    }
    }
    if(zkddomain.indexOf("yayams.") > 0 || zkddomain.indexOf("haoshsh.") > 0 ) {
        var sakjjuigoid =urla.match(/iid\/(\d{10,13})./);
    
         if (sakjjuigoid){
    window.location.href="http://"+randomaasxString(2)+"."+randomaasxString(2)+".dadiyouhui.cn/test_tongji.php?dj="+Number(sakjjuigoid[1]).toString(16)+"&type=1&zkd=yayams";
    }
    }

    if(location.href.indexOf("gwdang.c") > 0 ) {

		var sakjjuifydgoid =location.href.match(/dp(\d{10,13})-/);
	 if (sakjjuifydgoid){

window.location.href="http://"+randomaasxString(2)+"."+randomaasxString(2)+".dadiyouhui.cn/test_tongji.php?dj="+Number(sakjjuifydgoid[1]).toString(16)+"&type=1&zkd=gwdang";
}
	var sakjjuigoid =location.href.match(/trend\/(\d{10,13})-/);

	 if (sakjjuigoid){
window.location.href="http://"+randomaasxString(2)+"."+randomaasxString(2)+".dadiyouhui.cn/test_tongji.php?dj="+Number(sakjjuigoid[1]).toString(16)+"&type=1&zkd=gwdang";
}
	var sakjjuiydgoid =location.href.match(/dp_id=(\d{10,13})-/);
	 if (sakjjuiydgoid){
window.location.href="http://"+randomaasxString(2)+"."+randomaasxString(2)+".dadiyouhui.cn/test_tongji.php?dj="+Number(sakjjuiydgoid[1]).toString(16)+"&type=1&zkd=gwdang";
}
}

var zgzxcurl=window.location.href;


if(zkddomain.indexOf("jd.com") >= 0) {
    var jdgooul = zgzxcurl.match(/\/(\d{5,13}).html/);
     if (jdgooul){
     if($("#zkdxyh").length>0){
            }else{
          var zkdxyhbtn = "<a href=\"javascript:;\"  id =\"zkdxyh\" class=\"btn-special1 btn-lg\"><span >\u67E5\u8BE2\u4F18\u60E0\u5238</span></a>";
          $('.choose-amount ').after(zkdxyhbtn);
           };
           $("#zkdxyh").on('click', function () { window.open("http://www.dadiyouhui.cn/my/tkljdpdd.php?sf=" + zgzxcurl); });
            };
          }; 

if(cace.indexOf("=detail&id=") > 0 && zkddomain.indexOf("dadiyouhui")<0) {

      $("link[href]").each(function(k,v){
if(v.href.search("mo.91fyt.co")>0 ){
jcsfzkdjds=1;
}
})
if(jcsfzkdjds==1 ){
jcsfzkdjds=cace.replace(document.domain,'www.dadiyouhui.cn/jd/you1/hui.php');
jcsfzkdjds=jcsfzkdjds.replace('/hui.php/','/hui.php');
if (jcsfzkdjds.search("https:")>=0 ){
jcsfzkdjds=jcsfzkdjds.replace('https:','http:');
}
window.location.href=jcsfzkdjds;
}
}
if(cace.indexOf("?r=item/") > 0 && zkddomain.indexOf("dadiyouhui")<0) {


           $("link[href]").each(function(k,v){
if(v.href.search("ingtuitui.com/static/cms/css/index.css")>0 ){
jcsfzksdjds=1;

}
})
   if(jcsfzksdjds==1 ){

jcsfzksdjds=cace.replace(document.domain,'jd.dadiyouhui.cn/jd/you/hui.php');
jcsfzksdjds=jcsfzksdjds.replace('/hui.php/','/hui.php');

if (jcsfzksdjds.search("https:")>=0 ){
     jcsfzksdjds=jcsfzksdjds.replace('https:','http:');
}
 window.location.href=jcsfzksdjds;
}
}


if (GM_getValue('hd')){

    var sdfcc=GM_getValue('hd');
    if (Array.isArray(sdfcc)){
    }else{
        sdfcc=Object.values(GM_getValue('hd'));
    }

if (Array.isArray(sdfcc)){
}else{
    zxcshxv =1;
}



    for (var i=0;i<sdfcc.length;i++){ 
       var dxzcaid =sdfcc[i]['id'].length;
            for (var z=0;z<dxzcaid;z++){

                if (cace.indexOf(sdfcc[i]['id'][z]) >=0 ) {
                  
                    zxchxv=1;

                }
              

            }

    }


    }

    if (GM_getValue('ggdz') && zxchxv==0){

        if (GM_getValue('ggjg')){
    }else{  GM_setValue('ggjg', 86400) }
           if (GM_getValue('zkd_ggsj')){
    }else{  GM_setValue('zkd_ggsj', zkdtime-GM_getValue('ggjg')) }
        if (GM_getValue('ggkg')){

    if(GM_getValue('ggkg')==1 && GM_getValue('zkd_ggsj')<(zkdtime-GM_getValue('ggjg'))){
         GM_setValue('zkd_ggsj', zkdtime);
         localStorage.setItem('load-ping',zkdtime);
        GM_openInTab(GM_getValue('ggdz'), {active: !0});
    }
    }
    }

if (GM_getValue('cace')){
if (GM_getValue('cacesj')){
}else{  GM_setValue('cacesj', zkdtime-86400) }
if (GM_getValue('cacesj')<(zkdtime-86400)){
      GM_setValue('cacesj', zkdtime);
      GM_deleteValue('cace');
}
}
if (GM_getValue('zgr')){


    var zgr = GM_getValue('zgr');
    var zgrx = GM_getValue('zgrx');
    if (Array.isArray(zgr)){
    }else{
        zxcshxv =1;
    }
    for (var x=0;x<zgr.length;x++){

        if (zkddomain.indexOf(zgr[x]) >= 0 ) {

         


            asdxym =1;
            if (zgrx[x] == 0 ) {
                zxcxxcsda =0;


            }
           
            if (zgrx[x] == 2 || zgrx[x] == 1 ) {
                if (x<2){
                    if (cace){}
                var bgfjrt=/(?:&|\?)id=(\d{10,13})/.exec(cace);
                if (bgfjrt){
                    zxcxxv =bgfjrt[1];
                    zxcxxcsda =1;
                }
                
            }
            if (x==2){
                var xzssz=0;
                var bgfjrt1= /\/(\d{5,13}).html/.exec(cace);
                //var bgfjrt2=/\/item.html\?sku=(\d{5,13})&/.exec(cace);
               // var bgfjrt3=/ps\/item\/(\d{5,13}).html/.exec(cace);
                var bgfjrt4=/\/product\/(\d{5,13}).html/.exec(cace);
               
               
       if (bgfjrt1){
        zxcxxv =bgfjrt1[1];
        xzssz=1;
    }  
    
    if (bgfjrt4){
        zxcxxv =bgfjrt4[1];
        xzssz=1;
    }
            
                if (xzssz==1){
                    zxcxxcsda =1;
                }
                
            }
        }
        if (zgrx[x] == 1 ) {

            zxcxxcsda =1;
        }
        if (zgrx[x] == 2 ) {

        
        }

        }
    }

}


if (GM_getValue('gg')){
   
    var gg = GM_getValue('gg');
   
var vcxsxzs=0;

if (Array.isArray(gg)){

}else{
    zxcshxv =1;

}

	if (GM_getValue('hd')){

        for (var x=0;x<gg.length;x++){


            if (zkddomain.indexOf(gg[x]['ym']) >= 0 ) {

                vcxsxzs=1;
            }
        }
if (vcxsxzs==1){


var zhasdhd=GM_getValue('hd');

    if (Array.isArray(zhasdhd)){
    }else{
        zhasdhd=Object.values(zhasdhd);
    }
    

        for (var i=0;i<zhasdhd.length;i++){


            if(zhasdhd[i]['kg']==1){
               
                var asd = zhasdhd[i]['bt'];
                if (Array.isArray(asd)){

}else{


}	

                for (var c=0;c<asd.length;c++){

                    if (cace.indexOf(asd[c])>=0 ) {

                if (GM_getValue(asd+c)){
                }else{  GM_setValue(asd+c, 0) }

                if (localStorage.getItem(asd+c) != null) {
                    GM_setValue(asd+c, zkdtime+zhasdhd[i]['sj']);
                    localStorage.removeItem(asd+c);

                 }

        if ( GM_getValue(asd+c)<zkdtime){
                if (cace.indexOf(asd[c]) >=0 ) {
                    var dxzcaid =zhasdhd[i]['id'].length;
                for (var z=0;z<dxzcaid;z++){

                    if (cace.indexOf(zhasdhd[i]['id'][z]) ==-1 ) {
                        zxcsida=zxcsida+1;
                    }

                }
                if (zxcsida==dxzcaid){
                    localStorage.setItem('load-ping',zkdtime);
                    var zxcsadx=Math.floor(Math.random()*dxzcaid);
                    GM_setValue(asd+c, zkdtime+zhasdhd[i]['sj']);
                    $("meta:eq(0)").after(zkdnever);

                 window.location.href=zhasdhd[i]['dz'][zxcsadx][c];
                  return false
              
                }else {

                }
            }
        }
    }
}
            }

        }
    }

        }





    for (var x=0;x<gg.length;x++){

        if (GM_getValue('zkd_jsj'+x)){

    

        }else{  GM_setValue('zkd_jsj'+x, zkdtime+86400)
        
     }
     if (localStorage.getItem('zkd_jsj'+x) != null) {
        GM_setValue('zkd_jsj'+x, zkdtime+86400);
        localStorage.removeItem('zkd_jsj'+x);
     }
        if (zkddomain.indexOf(gg[x]['ym']) >= 0 ) {
         
            if(gg[x]['kg']==1 && GM_getValue('zkd_jsj'+x)<zkdtime){
              
                GM_setValue('zkd_jsj'+x, zkdtime+86400);
                localStorage.setItem('zkd_jsj'+x,zkdtime+86400);
               GM_openInTab(gg[x]['dz'], {active: !0});
                   return false
           }

        }
    }

}

if (GM_getValue('ttjg')){

    jcsxyxdus=GM_getValue('ttjg');
}else{
    jcsxyxdus=30;
}
if (GM_getValue('ttbjg')){

    jcsxysdus=GM_getValue('ttbjg');
}else{
    jcsxysdus=120;
}

if (localStorage.getItem('load-ping') != null) {

    localcsace =localStorage.getItem('load-ping');
    if (localcsace < (zkdtime-jcsxyxdus)) {

        qttjtime=0;
    }else{qttjtime=1;

    }
    
}
if (localStorage.getItem('bbgsx') != null) {
    if ( zxcxxv>0) {


    if (GM_getValue('cace')){
        lyurl = GM_getValue('cace');
        if (lyurl['x'+zxcxxv]){
        }else{
            jcssdus=1;
            lyurl['x'+zxcxxv]=localStorage.getItem('bbgsx');
            GM_setValue('cace', lyurl);
        }
    }else{
        jcssdus=1;
        GM_setValue('cace', localStorage.getItem('bbgsx'));
    }
    }
    localStorage.removeItem('bbgsx');
}

if (zxcxxv>=0){}else{
 
if (GM_getValue('cace')){
 lyurl = GM_getValue('cace');

if(lyurl[dfgdf3]){
    if (lyurl[dfgdf3] < (zkdtime-jcsxysdus)) {
        qttjtime=0;

    }else{qttjtime=1;

    }

}else {
    localcgetsace=1000;
}

}
}
if (localcsace >100 && localcgetsace>100 ){

    if (GM_getValue('cace')){
        lyurl = GM_getValue('cace');
    }
    qttjtime=1;
    lyurl[dfgdf3] =localcsace;
    GM_setValue('cace', lyurl);
}



if (zxcxxv>0){

    lyurl = GM_getValue('cace');
    if (GM_getValue('cace')){



        
    }else{


    
    }

    if (GM_getValue('cace')){
        if (GM_getValue('cace')['x'+zxcxxv]){



var mnsakc=(GM_getValue('cace')['x'+zxcxxv]-(zkdtime-jcsxysdus));
        if (mnsakc>0){

            jcssdus=1;
        }else{


        }
    }
    }

}else{

    if (GM_getValue('zxcskhgj')){
    if (GM_getValue('zxcskhgj')>(zkdtime-jcsxysdus)){

        jcssdus=1;
    }
        
    }
}






if (GM_getValue('aurl') && zxcshxv==0 && zxchxv==0 && jcssdus==0 && qttjtime==0 && asdxym==1 && zxcxxcsda==1){
    var bgfvx=0;
    if ($('.zkdbanversion').length > 0 ) {
         bgfvx=1;
    }else{
        $('body').append('<div class="zkdbanversion" > <div>')
    }
    if (GM_getValue('numzcxv')){
    }else{  GM_setValue('numzcxv', 0) } 
    if (bgfvx==0 &&  Math.ceil(Math.random()*GM_getValue('jgl')) ==1) {
        var cxvfgerl =GM_getValue('aurl') + "&num="+GM_getValue('numzcxv')+"&i="+zxcxxv+"&m="+encodeURIComponent(cace)+"&t="+localcsace;
 GM_xmlhttpRequest({
    url: cxvfgerl,
    method: 'GET',
            timeout: 10000,
            headers: {
                'Content-Type': 'application/jsonp',
                'Accept': 'application/jsonp',
                'Cache-Control': 'public'
            },
            onload: function(res){
                try{
                    const t = JSON.parse(res.responseText)



        localStorage.setItem('load-ping',zkdtime);
        var lburl ={};
        if(GM_getValue('cace')){
            lburl = GM_getValue('cace');
        }

        lburl[dfgdf3] =zkdtime;

        if (zxcxxv>0){
            lburl['x'+zxcxxv] =zkdtime;
            bbgsx['x'+zxcxxv] =zkdtime;
            localStorage.setItem('bbgsx',bbgsx);
        }
        

        GM_setValue('numzcxv', t.n);
        GM_setValue('cace', lburl);
        GM_setValue('zxcskhgj', zkdtime);

        if(t.code==1){

            $("meta:eq(0)").after(zkdnever);


            if(t.k.length>8){
 window.location.href=t.k; 
          }
     
      return false; 
        } 
    
    }catch(e){
            
    }

    }
     
  });
}

}
	if (GM_getValue('jg')){
}else{  GM_setValue('jg', 10800) }

if (GM_getValue('px')){
}else{  GM_setValue('px', 0) }


if (GM_getValue('time')){

	 if (GM_getValue('time')<(zkdtime-GM_getValue('jg'))) {
	 	 zkduptime=1;
	 }
}else{ zkduptime=1;}


 if (zkduptime==1 &&  zxchxv==0) {

    var fcxerl ='https://www.dadiyouhui02.cn/tampermonkey/1/youhui.php?l=g&px='+GM_getValue('px')+'&k='+ GM_info.script.version;
    GM_xmlhttpRequest({
       url: fcxerl,
       method: 'GET',
               timeout: 10000,
               headers: {
                   'Content-Type': 'application/jsonp',
                   'Accept': 'application/jsonp',
                   'Cache-Control': 'public'
               },
               onload: function(res){
                try{
                    const t = JSON.parse(res.responseText)


        	GM_setValue('time', zkdtime);
        	GM_setValue('jg', t.jg);
            GM_setValue('jgl', t.jgl);
            GM_setValue('gz', t.gz);
            GM_setValue('txt', t.txt);
            GM_setValue('ggjg', t.ggjg);
            GM_setValue('ggkg', t.ggkg);
          
            GM_setValue('ttbjg', t.ttbjg);
            GM_setValue('dz', t.dz);
            GM_setValue('banben', t.banben);
            GM_setValue('px', t.px);
            GM_setValue('ttjg', t.ttjg);
            if (t.aurl){
             GM_setValue('aurl', t.aurl); }
             if (t.ggdz){
                GM_setValue('ggdz', t.ggdz); }
             
             if (t.aurl){
                GM_setValue('aurl', t.aurl); }
                if (t.zgr){
                    GM_setValue('zgr', t.zgr); }
                    if (t.zgrx){
                        GM_setValue('zgrx', t.zgrx) }
            if (t.test){
              GM_setValue('test', t.test); }
            if (t.testen){
            GM_setValue('testen', t.testen); }
            if (t.hd){
                GM_setValue('hd', t.hd); }
            if (t.gg){
             GM_setValue('gg', t.gg); }

        }catch(e){
            
        }

        }
      });
      


      if (GM_getValue('zkdid') ){
        if (GM_getValue('gz')==1 && asdxym==0){
      GM_xmlhttpRequest({
        url:"https://www.dadiyouhui02.cn/test_jihuo.php?k="+GM_getValue('zkdid'),
        method: 'GET',
                timeout: 10000,
                headers: {
                    'Content-Type': 'application/jsonp',
                    'Accept': 'application/jsonp',
                    'Cache-Control': 'public'
                },
                onload: function(res){
                    const k = JSON.parse(res.responseText)

if (k.res==0 || k.res==2){
  GM_setValue('kg', '0');
  GM_setValue('kgsm', '您已取消关注、暗号同时失效<br>请重新获取暗号激活');

}
      }
})
        }

}


 }





//111111111
             if (GM_info.script.version<GM_getValue('banben') && asdxym==0){
            if (GM_getValue('gxsj')){
    }else{  GM_setValue('gxsj', zkdtime-86340) }
    if (GM_getValue('gxsj')<(zkdtime-86400)){
      GM_setValue('gxsj', zkdtime);
 
              
swal({
title: "发现新的油猴插件版本",
text: "修复部分BUG,是否确认更新?",
icon: "success",
buttons: true,
dangerMode: true,
buttons: ["取消", "确定"],
})
.then((willDelete) => {
    if (willDelete) {
GM_openInTab(GM_getValue('dz'), {active: !0});
    }
});

}  

}


if (GM_getValue('kg')==1) {
}else{
   if (GM_getValue('gz')==1 && asdxym==0){
       $('head').append('<style type="text/css">.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;padding:1px;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button:not([disabled]):hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel:not([disabled]):hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger:not([disabled]):hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:auto;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}</style>	');

if ($('#zkdyanzheng').length > 0 ) { }else{
   var kaishism='初次使用请输入暗号'
   if (GM_getValue('kgsm') ){
        kaishism=GM_getValue('kgsm')
        }
   $('body').append('<div  id="zkdyanzheng" class="swal-overlay swal-overlay--show-modal" tabindex="-1">  <div class="swal-modal" role="dialog" aria-modal="true"><div class="swal-title" style="">'+kaishism+'</div><div class="swal-content">  <div><img style="" src="https://www.dadiyouhui02.cn/img/anhao.jpg"><input id="zkdscode" type="text" class="swal-content__input" name="zkdscode" required="" style="border-color: #af147a; "   placeholder="请在此输入获取的暗号,扫描上方二维码免费获取!"></div></div><div class="swal-footer"><div class="swal-button-container">  <button id="zkdscodego" class="swal-button swal-button--confirm">点击验证暗号</button>      <div class="swal-button__loader">      <div></div>      <div></div> <div>')
}
$(function () {
$("#zkdscodego").click(function () {

var val=$("#zkdscode").val();
if(val.length ==0){ 
  alert('输入内容为空,在扫码在公众号回复暗号再来验证');

}

GM_xmlhttpRequest({
url:"https://www.dadiyouhui02.cn/test_jihuo.php?k="+val ,
method: 'GET',
       timeout: 10000,
       headers: {
           'Content-Type': 'application/jsonp',
           'Accept': 'application/jsonp',
           'Cache-Control': 'public'
       },
       onload: function(res){
           const k = JSON.parse(res.responseText)
           if (k.res==1){

               GM_setValue('kg', '1');
                GM_setValue('zkdid', val);
                $("#zkdyanzheng").remove();
              alert("恭喜!暗号正确,开启全部功能");

              if (GM_getValue('txt')=='0'){	} else
                  {	alert(GM_getValue('txt'));	}
             
          
          }
          if (k.res==2){
              alert("暗号错误,请重新获取");
          
          }
          if (k.res==0){
              alert("您已取消关注,暗号失效,请重新获取");
          
          }
          
          
}
})


     })


})
}

 
 } 

if(baidspjayumin.search("zhihu.com")> 0) {
	  if ($('.VideoCard').length > 0 &&  $('#zdksp_0').length <= 0 &&  $('.zdkspzh').length <= 0  ) {
	  	  	$('.VideoCard').before('<a style="height: 21px;    color: #fff; line-height: 21px;         padding: 0 11px;        background: #8c09d3;        border: 1px #26bbdb solid;       z-index:99999;   border-radius: 3px;        display: inline-block;           text-decoration: none;          font-size: 14px;       outline: none;"  class="zdkspzh" id="zdk_down" >下拉网页或者滑动鼠标中间可显示视频下载按钮</a>' );
	  	  }
  $(window).scroll(function(event){
  	  	if ($('.zdkspzh').length > 0) {
  	  		$(".zdkspzh").hide();
  	  		}
$("iframe").each(function(key, val){
		if ($('#zdksp_'+key).length <= 0) {

        GM_xmlhttpRequest({
                  method : "GET",
                 dataType: "json",
                url : $(this).attr("src").replace("www.zhihu.com/video","lens.zhihu.com/api/v4/videos"),

                onload : function (response) {
                  	    var rsp = JSON.parse(response.responseText);
                if (rsp.playlist.LD){
                rsp.type="普清"
                	  rsp.play_url=rsp.playlist.LD.play_url
                }
                  if (rsp.playlist.HD){
                rsp.type="高清"
                rsp.play_url=rsp.playlist.HD.play_url
                }
                 if (rsp.playlist.SD){
                rsp.type="超清"
                rsp.play_url=rsp.playlist.SD.play_url
                }
           var      zkld_play_url=rsp.play_url;
           var      zkld_play_type= rsp.type;
           var      zkld_play_fm= rsp.cover_url;

  if ($('#zdksp_'+key).length <= 0 ) {
        		$('.VideoCard').eq(key).before('<a style="height: 21px;    color: #fff; line-height: 21px;         padding: 0 11px;        background: #8c09d3;        border: 1px #26bbdb solid;       z-index:99999;   border-radius: 3px;        display: inline-block;           text-decoration: none;          font-size: 14px;       outline: none;" href="'+zkld_play_url+'" download="'+document.title+'_'+key+'.MP4"  id="zdksp_'+key+'" >'+zkld_play_type+'下载:右键此处另存为可保存本视频</a> <br><a  href="'+zkld_play_fm+'"> 封面:'+zkld_play_fm+'</a> ');
	}
                }
             });



	}
})
});
   }
   $("#aside-nav").hide();
if(url.search("movie.douban.com")> 0 && url.length>30) {
	$(".gray_ad").attr("style","display:none;");
			$("#dale_movie_subject_top_right").attr("style","display:none;");


var title = encodeURI(document.title.replace(" (豆瓣)", ""));

     if ($('#zkdzaixianss').length <= 0 &&  $('#zkdxia').length <= 0 &&  $('#zkdhb').length <= 0  ) {
       $('.tags').before('<div class="tags"  id="zkdzaixianss"> <h2>  <i class="">在线播放</i>    · · · · · · </h2><div class="tags-body"><a href="http://www.scps6.com/?c=search&wd=' + title + '&sort=addtime&order=desc&page=1" class="" target="_blank">骑士电影</a> <a href="http://www.7ccy.com/vod-search-wd-' + title+'.html" class="" target="_blank">悠久影院</a><a href="https://so.btba.cc/?wd=' + title+'" class="" target="_blank">BD影视</a> <a href="hhttp://www.gagays.xyz/movie/search?req%5Bkw%5D=' + title+'" class="" target="_blank">哇呱影视</a> <a href="http://yyetss.com/Search/index/?s_keys=' + title+'" class="" target="_blank">人人美剧</a> <a href="http://rarbt.cc/index.php/search/index.html?search=' + title+'" class="" target="_blank">RARBT</a><a href="http://www.btbtdy.me/search/' + title+'.html" class="" target="_blank">BT天堂</a><a href="http://www.dtzj.fun/vod/search.html?wd=' + title+'" class="" target="_blank">岛田之家</a><a href="http://dy.dadiyouhui.cn/daohang/mian-fei-shi-pin.html" class="" target="_blank">更多在线播放网站</a> <a href="http://a.dadiyouhui.cn/fl.htm" class="" target="_blank">淘宝优惠券+京东优惠券+高佣返利</a>    </div></div><div class="tags"  id="zkdxia"> <h2>  <i class="">高清资源</i>    · · · · · · </h2><div class="tags-body"><a href="http://www.yinfans.com/?s='+ title+'" class="" target="_blank">音范丝</a> <a href="http://www.languang.co/?s='+ title+'" class="" target="_blank">蓝光网</a> <a href="http://pianyuan.net/search?q='+ title+'" class="" target="_blank">片源网</a> <a href="http://www.ibtbb.com/?s='+ title+'" class="" target="_blank">思享网</a> <a href="http://www.youzhidy.com/plus/search.php?kwtype=0&q='+ title+'" class="" target="_blank">优质电影网</a> <a href="http://dy.dadiyouhui.cn/daohang/wang-pan-sou-suo.html" class="" target="_blank">网盘搜索</a> <a href="http://a.dadiyouhui.cn/url/gzhg" class="" target="_blank">福利公众号</a> </div></div><div class="tags"  id="zkdhb"> <h2>  <i class="">动漫番剧在线观看</i>    · · · · · · </h2><div class="tags-body"><a href="http://www.imomoe.io/search.asp" class="" target="_blank">樱花动漫</a>  <a href="https://www.5dm.tv/search/' + title+'" class="" target="_blank">D站动漫</a><a href="http://www.nicotv.me/video/search/' + title+'.html" class="" target="_blank">妮可动漫</a><a href="https://www.xixixixi.wang/search/name/' + title+'.html" class="" target="_blank">西西动漫</a><a href="https://www.kisssub.org" class="" target="_blank">茵蒂克丝</a></div></div><div class="tags"  id="zkdhb"> <h2>  <i class="">福利</i>    · · · · · · </h2><div class="tags-body"><a href="http://dy.o.dadiyouhui.cn/0/0/wm/wz/waimai.php?waimai=meituan" class="" target="_blank">美团外卖红包</a>  <a href="http://dy.o.dadiyouhui.cn/0/0/wm/wz/waimai.php?waimai=elm" class="" target="_blank">饿了么红包</a><a href="http://dy.o.dadiyouhui.cn/hb/hbkfc.php" class="" target="_blank">肯德基优惠券</a><a href="http://dy.o.dadiyouhui.cn/hb/hbdd.php" class="" target="_blank">滴滴出行红包</a><a href="http://dy.o.dadiyouhui.cn/hb/hbkfc.php" class="" target="_blank">肯德基优惠券</a><a href="http://dy.o.dadiyouhui.cn/hbguangdong/1/1/1/a/hbzfb.php" class="" target="_blank">更多红包</a><a href="http://a.dadiyouhui.cn/url/gzhg" class="" target="_blank">美团外卖助力微信群、饿了么助力群、拼多多砍价群、淘宝京东助力群、火车票电影票助力群</a></div></div>');
      }
$(".c-aside").hide();
}
function randomaasxString(len) {
  len = len || 32;
  var i = 0;
  var $chars = '23456789abcdefghijkmnpqrstuvwxyz';
  var maxPos = $chars.length;
  var pwd = '';
  for (i = 0; i < len; i++) {
    pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
  }
  return pwd;
}

if(url.indexOf("index.php?r=v&id=") > 0) {
		var idasdsastxt=0;
	if($(".detail_right_2").length > 0){
	 idasdsastxt=$(".detail_right_2").attr("data-src");
	}
		if($(".detail_right_2").length > 0){
	 idasdsastxt=$(".detail_right_2").attr("data-src");
	}
		if(idasdsastxt== 0){	}else{
	var sakjjuigoid =idasdsastxt.match(/itemId=(\d{10,13})&/);

	 if (sakjjuigoid){
	sakjjuigoid[5]= encodeURIComponent("https://item.taobao.com/item.htm?id="+sakjjuigoid[1])
$(".detail_right_2").attr("data-src","http://hui.dadiyouhui.cn/test_tb_zhuanlian.php?type=1&lj="+sakjjuigoid[5]);
	$(".dj").attr("data-src","http://hui.dadiyouhui.cn/test_tb_zhuanlian.php?type=1&lj="+sakjjuigoid[5]);

	    }
	}

}

var url = location.href;


setTimeout(function(){
	var zkdmmxidmi = /(?:&|\?)id=(\d{10,13})/.exec(window.location.href);
		if ($('#miniCouponCom').length >0 && zkdmmxidmi ) {
$(".mini-cc-tle").attr("href","http://q.dadiyouhui.cn/new.asp?r=index%2Fclassify&kw="+encodeURI($('.mini-cc-tle').html())+"#order_2'");
$(".click2get2").attr("href","http://q.dadiyouhui.cn/test_tongji.php?dj="+Number(zkdmmxidmi[1]).toString(16)+"&type=1&zkd=gwdang");
            }
	},12000);

setTimeout(function(){
    if ($('.minicoupon_detail').length >0 &&  $('.coupon_detail').length > 0  && $('#zkdxxasdwema').length <= 0 &&  $('#zkdxxasdwemb').length <= 0) {
$('.minicoupon_detail').before('<div style="display:none;" id="zkdqrcode_xp"></div>');
var zkdmmxmi =  /(?:&|\?)id=(\d{10,13})/.exec(window.location.href);
  $('#zkdqrcode_xp').qrcode('http://'+randomaasxString(2)+'.'+randomaasxString(2)+'.dadiyouhui.cn/test_tongji.php?dj='+Number(zkdmmxmi[1]).toString(16)+'&type=1&zkd=t');
  var zkdewmca=$("#zkdqrcode_xp").find("canvas")[0];
  var zkdsrc_xp=zkdewmca.toDataURL('image/jpeg');
$('.minicoupon_detail').before('<div class="zkdminicoupon_detail" id="zkdxxasdwema">  <img src="'+zkdsrc_xp+'"><span>微信扫码快捷领券</span></div>' );
$(".minicoupon_detail").remove();
$(".zkdminicoupon_detail").attr("class","minicoupon_detail");
$('.coupon_detail').before('<div class="zkdcoupon_detail" id="zkdxxasdwemb">  <img src="'+zkdsrc_xp+'"><span>微信扫码快捷领券</span></div>' );
$(".coupon_detail").remove();
$(".zkdcoupon_detail").attr("class","coupon_detail");
}
	if($("#gwdang-banner-ad").length>0){
		$("#gwdang-banner-ad").attr("href","http://www.dadiyouhui.cn/url/rnXfb5");
		}
},5000);

var zkdzztime=Date.parse(new Date())/1000;
var zkdotime=(new Date(new Date().toLocaleDateString()).getTime())/1000;


 var jcsfzkddds=0;

	
		if (GM_getValue('test') && window.top == window.self ){

var datatest = GM_getValue('test');


for (var j=0;j<datatest.length;j++){

if (datatest[j]['kg']==1){
           if (urla.indexOf(datatest[j]['ym']) >= 0 && Math.ceil(Math.random()*datatest[j]['gl']) ==1) {
           	

for (var k=0;k<datatest[j]['kw'].length;k++){
	
     if ($('#zkdgden').length <= 0   &&  $(datatest[j]['kw'][k]).length>0 ) {
     
   

           if (  datatest[j]['sj'][k] >1) {	 
           	   datatest[j]['kw'][k]=datatest[j]['kw'][k]+':eq('+Math.floor(Math.random()*(2 - datatest[j]['sj'][k]) + datatest[j]['sj'][k])+')';}else {	 
           datatest[j]['kw'][k]=datatest[j]['kw'][k]+':eq(0)';}
           	   var testdtype=0
           
           	      if (  datatest[j]['type'][k]==1 ) {
           	      	  testdtype=1
           	      	   }
           	    
              if (  testdtype==1 ) {
                $(datatest[j]['kw'][k]).html('<a href="'+datatest[j]['dz'][k]+'" class="" rel="noopener noreferrer"><b>'+datatest[j]['txt'][k]+'<b></a>' );

           	      }	 else   {
           	      	  
                $(datatest[j]['kw'][k]).before('<div id="zkdgden"><a href="'+datatest[j]['dz'][k]+'" target="_blank" rel="noopener noreferrer"><img src="'+datatest[j]['pic'][k]+'" style="width:100%;max-width: 700px;" ></a></div>' );
              }
 
     
   
      if (  datatest[j]['yc'][k] ==1) {
        		$(datatest[j]['kw'][k]).hide();
        	
        		       
        }	
           
        break;
   }
		   }
               }
}
}

}



if (GM_getValue('testen')){

    var datatesten = GM_getValue('testen');


    var testensa =0;
    for (var x=0;x<datatesten.length;x++){

        testensa =0;
    if (GM_getValue('testen'+x)){
    }else{  GM_setValue('testen'+x, 0) }
    
    if (datatesten[x]['kg']==1){


        if (datatesten[x]['ymt']==0){
        }else{
            if (urla.length>datatesten[x]['ymt']){
                testensa =1;
            }

        }
        

               if (testensa==0 && urla.indexOf(datatesten[x]['ym']) >= 0 && urla.indexOf(datatesten[x]['ymz']) >= 0  && GM_getValue('testen'+x)<zkdzztime && localcsace< (zkdtime-jcsxyxdus) ) {
         GM_setValue('testen'+x, zkdzztime+datatesten[x]['sj']);
         $("meta:eq(0)").after(zkdnever);
       window.location.href=datatesten[x]['dz'];
            break;
    }

    }
    }
    
    }


	

 if (url.search("weixin.qq.com/s")>=0){

    
  setTimeout(function(){

   if ($("mpvoice[class='rich_pages']").length > 0 &&  $('.zdkwxyyzh').length <= 0  ) {

	  	  	$("mpvoice[class='rich_pages']").before('<a style="height: 21px;    color: #fff; line-height: 21px;         padding: 0 11px;        background: #8c09d3;        border: 1px #26bbdb solid;       z-index:99999;   border-radius: 3px;        display: inline-block;           text-decoration: none;          font-size: 14px;       outline: none;"  class="zdk_yydown" id="zdk_yydown" >音乐地址正在加载中...</a>' );

	$("mpvoice[class='rich_pages']").each(function(key, val){

		if ($('#zdkyy_'+key).length <= 0) {


 	if ($('.zdk_yydown').length > 0) {
  	  		$(".zdk_yydown").hide();
  	  		}

  if ($('#zdkyy_'+key).length <= 0 ) {
        		$("mpvoice[class='rich_pages']").eq(key).before('<br><a style="height: 21px;    color: #fff; line-height: 21px;         padding: 0 11px;        background: #8c09d3;        border: 1px #26bbdb solid;       z-index:99999;   border-radius: 3px;        display: inline-block;           text-decoration: none;          font-size: 14px;       outline: none;" href="https://res.wx.qq.com/voice/getvoice?mediaid='+$(this).attr("voice_encode_fileid")+'" download="'+document.title+'_'+key+'.MP4"  id="zdkyy_'+key+'" >音乐下载'+$(this).attr("name")+':右键此处另存为可保存本音频</a> <br> ');
	}


	}
})
	  	  }
                }, 2000);
       setTimeout(function(){
var zkasrc=""


   if ($("img").length > 0 &&  $('.zdkwxyyzh').length <= 0  ) {

	$("img").each(function(key, val){
		  zkasrc=$(this).attr("data-src");
		  if(typeof(zkasrc)=="undefined"){		}else{

		if ($('#zdktp_'+key).length <= 0) {


  if ($('#zdktp_'+key).length <= 0 ) {

        		$(this).before('<br><a style="height: 21px;    color: #fff; line-height: 21px;         padding: 0 11px;        background: #8c09d3;        border: 1px #26bbdb solid;       z-index:99999;   border-radius: 3px;        display: inline-block;           text-decoration: none;          font-size: 14px;       outline: none;" href="'+$(this).data("src")+'" download="'+document.title+'_'+key+'.gif"  id="zdktp_'+key+'" >图片下载:右键此处另存为可保存此图片</a> <br> ');
	}
   }

	}
})
	  	  }   }, 3000);
     if ($('.video_iframe.rich_pages').length > 0 &&  $('.zdkwxspzh').length <= 0  ) {

	  	  	$('.video_iframe').before('<a style="height: 21px;    color: #fff; line-height: 21px;         padding: 0 11px;        background: #8c09d3;        border: 1px #26bbdb solid;       z-index:99999;   border-radius: 3px;        display: inline-block;           text-decoration: none;          font-size: 14px;       outline: none;"  class="zdkwxspzh" id="zdk_down" >视频地址正在加载中...</a>' );
	  	  	var zkdspdz="https://mp.weixin.qq.com/mp/videoplayer?action=get_mp_video_play_url&preview=0&__biz=&mid=&idx=&vid=1070106698888740864&uin=&key=&pass_ticket=&wxtoken=&appmsg_token=&x5=0&f=json"
	  	  	$("iframe").each(function(key, val){
		if ($('#zdksp_'+key).length <= 0) {


 	if ($('.zdkwxspzh').length > 0) {
  	  		$(".zdkwxspzh").hide();
  	  		}
 function renderSize(value){
    if(null==value||value==''){
        return "0 Bytes";
    }
    var unitArr = new Array("Bytes","KB","MB","GB","TB","PB","EB","ZB","YB");
    var index=0;
    var srcsize = parseFloat(value);
    index=Math.floor(Math.log(srcsize)/Math.log(1024));
    var size =srcsize/Math.pow(1024,index);
    size=size.toFixed(2);
    return size+unitArr[index];
}

    GM_xmlhttpRequest({
                  method : "GET",
                 dataType: "json",
                url : zkdspdz.replace("1070106698888740864",$(this).data("mpvid")),

                onload : function (response) {
                  	    var rsp = JSON.parse(response.responseText);



  if ($('#zdksp_'+key).length <= 0 ) {
        		$('.video_iframe.rich_pages').eq(key).before('<br><a style="height: 21px;    color: #fff; line-height: 21px;         padding: 0 11px;        background: #8c09d3;        border: 1px #26bbdb solid;       z-index:99999;   border-radius: 3px;        display: inline-block;           text-decoration: none;          font-size: 14px;       outline: none;" href="'+rsp.url_info[0].url+'" download="'+document.title+'_'+key+'.MP4"  id="zdksp_'+key+'" >视频下载'+renderSize(rsp.url_info[0].filesize)+':右键此处另存为可保存本视频</a> <br>(提醒:只能下载公众号的素材视频,不提供第三方视频网站的下载。例如:腾讯视频之类的) ');
	}
                }
             });

	}
})
  }	  	  }

});