【购物助手】自动查询天猫优惠券、京东优惠券,历史价格,购物比价,一键查询,方便领取。自带高佣返利通道比同类型领券返利平台高50%-200%

自动查询天猫优惠券、京东优惠券,商品历史价格走势,购物比价,简介美观

// ==UserScript==
// @name        【购物助手】自动查询天猫优惠券、京东优惠券,历史价格,购物比价,一键查询,方便领取。自带高佣返利通道比同类型领券返利平台高50%-200%
// @namespace http://gongju.dadiyouhui03.cn/app/tool/youhou/index.html
// @version           120
// @description     自动查询天猫优惠券、京东优惠券,商品历史价格走势,购物比价,简介美观
// @icon   data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAMAUExURfABdv////z///ABdP3+/u8Bdv7////+/vABdfEBdvEBde8Bd/ABc/39//ACdv79/vz+//EAcu8BdfABd/7+//7//vEBdPEBd/IAdv3+/fz+//79/f3///BPnv3//vvv9vKOvu4AcP39/fIBc+8Bc+8Bcfv///76/O9Bke4Dc/rd7P79/vz3+/37/frf7/3v9v/8/f3s9O4BdP3y+Pv//u0ziv///vv+/e4Gde8BdPJtr/AAb+4Cdvat0ulMl/Os0O4CdfjI4O0Pdu8Qdu4bgPMBdPWw0u4Refrf7vQBde4KdPfB3O4Ndvvt9fvn8u0Kdu8IdO4mhPN8tvW11e4Bcfamzfv5+/v7/P/+//A/lPCHu+8Hcu9Mmf32+vrp8/EHcu8QePr///fO5P39/u85jfnU6Pzr8/rX6PMBeO5ho+9rqe0Md+wviP3u9vIAb+wBcesjgfv2+vbA2/ADc+orhvbD3fr1+fGLvfF8te0MdPGDufbJ4e9ZoPvj8Ow/kPna6+8zjPORwfEHdewZfvjR5u0Se+94su0effzy+Pvl8fWeye0qh+5do/EEdexFkuwyiO4KefbF3v38/+wOeO0ae/Gbxu8Hd/Ox1O1SnPGUwfSbyO0egfzx9/ff7e8Teu0VeO8Ece03je0jhPjL4vW+2u8tifAFdPAMdu9xr/rx9/KkzO0ohPSLvu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BrcXvqrNzKwtMPAiLmYb7QiVazSa0MDQ0JJQb1Ym635U2PhUjiDGepW9r8bnYbySou64+6qZtOnYtI6dE/IfYyg6zxV5V9eMu/4XKcBX6P/ihhvKzNsid+Nz/sFV/n/u2E2ffRZw/qacxR09HjrA6dHM5i0b4jCncA939gBUwo2c0Ubh7AHwg77k6JJdZm9bVZjfzpG0NljPGkDN5yQHUsmhxOxc4SGEcRmAI/jXWHJr8gckGXCoNu/RFmGQEZFp6TcagLKIi+NslI4IGwMbY0RydY4iM72dwKVydu9KEUY2BtC2b3PHg9H0doBYc1SZCTtk57VIhEBt1m1lBhsObENAVI96IS4bPi7r/mAdkQj45nc2GR3vT+29XJxCtK8YuDmVxZz6Z9ZqszEidt+zichJryw91ndo8jSa2z/h9ubMVduVWEQgDgAAm9tuVn2sKbMAAAAASUVORK5CYII=
// @match             *://*.taobao.com/*
// @match             *://*.tmall.com/*
// @match             *://*.tmall.hk/*
// @match             *://*.liangxinyao.com/*
// @match             *://*.jd.com/*
// @match             *://*.jd.hk/*
// @match             *://*.yiyaojd.com/*
// @require https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-d/jquery/2.1.4/jquery.min.js
// @require https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-d/sweetalert/2.1.2/sweetalert.min.js
// @require https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-d/jquery.qrcode/1.0/jquery.qrcode.min.js
// @require https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-d/html2canvas/0.5.0-beta4/html2canvas.js
// @require https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-d/echarts/5.0.1/echarts.min.js
// @grant        GM_addStyle
// @grant        GM_download
// @grant        GM_xmlhttpRequest
// @grant        GM_getResourceText
// @run-at             document-start
// @inject-into             content
// @grant             unsafeWindow
// @grant             GM_xmlhttpRequest
// @grant             GM_setClipboard
// @grant             GM_setValue
// @grant             GM_getValue
// @grant             GM_deleteValue
// @grant             GM_openInTab
// @grant             GM_registerMenuCommand
// @grant             GM_unregisterMenuCommand
// @grant             GM.getValue
// @grant             GM.setValue
// @grant             GM_info
// @grant             GM_notification
// @grant             GM_getResourceText
// @grant             GM_openInTab
// @grant             GM_download
// @noframes
// @license             End-User License Agreement
// @antifeature       referral-link 【应GreasyFork代码规范要求:含有优惠券查询功能的脚本必须添加此提示!在此感谢大家的理解..】
// @connect     dadiyouhui02.cn
// @connect     manmanbuy.com

// @connect *
// ==/UserScript==

 //    
   
// 可以查询优惠券
//  可以扫码领取可以扫码领取
 var  zkdtxonel="";
var  zkdtbuul="";
 var  zkdtlikel="";
 var  zkdtonel="";
 var  zkdtaonel="width:100px";

 function htmadd(id,img,html) {
   $(id).after(html);
  $('#zkdqrscode_xp').qrcode({width: 100,height: 100,text: img});

}

function kuaisearch() {
let kw=$("input[name='q']").val();
if (kw){
}else{
	kw=$("input").eq(0).val();
}
    var lian = "https://q.dadiyouhui.cn/new.asp?r=/l&kw=" + encodeURIComponent(kw)+"&sort=0";
  window.location.href=lian; 
}

function gosearch() {
    let kw=$('#key').val();
    kw=kw.replace(/【(\S*)】/ig," ");
    kw=kw.replace(/\((\S*)\)/ig," ");
    kw=kw.replace(/((\S*))/ig," ");
	let kwkey=encodeURIComponent(kw);
	kwkey=window.btoa(kwkey);
    var lian = "https://q.dadiyouhui.cn/app/appindex.php?index=kw&kw=" + kwkey+"&zkindex=2";
 window.location.href=lian; 
}

 GM_setValue('zkdz_name', 'youhuifl');
function chalishi(data) {

  var fcxerl ='https%3a%2f%2fbijiatool-v2.manmanbuy.com%2fChromeWidgetServices%2fWidgetServices.ashx%3fmethodName%3dgetBiJiaInfo%26jsoncallback%3d%26p_url%3d';
  fcxerl=decodeURIComponent(fcxerl)+data;
    GM_xmlhttpRequest({
       url: fcxerl,
       method: 'GET',
               timeout: 5000,
               headers: {
                   'Content-Type': 'application/jsonp',
                   'Accept': 'application/jsonp',
                   'Cache-Control': 'public'
               },
               onload: function(res){
                try{
                    const t = JSON.parse(res.responseText)
         //  t = JSON.parse(res.responseText)

                var datalishi=    t.jiagequshiyh.split('],[');
                var datalishisj = new Array();
                var datalishijg = new Array();
                var datalishism = new Array();
for(j = 0,len=datalishi.length; j < len; j++) {
	let datalishiys=/UTC\((.*)\),(.*),\"(.*)\"/.exec(datalishi[j]);
	if (datalishiys[3]==""){
datalishisj.push(datalishiys[1]);
	}else{
	datalishisj.push(datalishiys[1]+":"+datalishiys[3]);
	}

	datalishijg.push(datalishiys[2]);

}


var domlishi = document.getElementById("containerlishi");
var myChartlishi = echarts.init(domlishi);
var app= {};

var optionlishi;





var dateList = datalishisj;
var valueList = datalishijg;

optionlishi = {

    visualMap: [{
        show: false,
        type: 'continuous',
        seriesIndex: 0,
        min: 400,
        max: 400
    }, {
        show: false,
        type: 'continuous',
        seriesIndex: 1,
        dimension: 0,
        min: 0,
        max: dateList.length - 1
    }],


         title: [{
        left: 'center',
        text: t.currentPriceStatus
    }],
    tooltip: {
        trigger: 'axis'
    },
    xAxis: [{
        data: dateList,
        gridIndex: 0
    } ],
    yAxis: [{
    }, {
        gridIndex: 0
    }],
    grid: [{
        bottom: '3%'
    }, {
        top: '1%'
    }],
    series: [{
        type: 'line',
        showSymbol: false,
        data: valueList
    } ]
};

if (optionlishi && typeof optionlishi === 'object') {
    myChartlishi.setOption(optionlishi);
}


        }catch(e){
$('#containerlishi').text('加载商品历史价格失败..');
$('#containerlishi').css("height","20px");
        }
        }
      });

}
zkdtaonel="width";
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;


let zkq_tabhtml = ``;


    var init = "<div  id='zkq_div'></div>";
     var init1 = "<div  id='zkq_div' style='margin-top: 20px;'></div>";
    $('#J_LinkBasket').parent().parent().prepend(init);
    $('.J_LinkAdd').parent().parent().prepend(init);
    $("div[class*='BasicContent--actions']").after(init1);

   var  zzxcvsdid=/(?:&|\?)id=(\d{10,13})/.exec(window.location.href);
           var  zzxcvsdiw="https://www.dadiyouhui02.cn/";
           var  zzxcvsdiz="test_gaoyongtb.php?item=";
           zkdtlikel="https://q.dadiyouhui.cn/app/apphtml.php?index=like&type=0&item_id="+zzxcvsdid[1];

           var yhqewmurl="https://item.taobao.com/item.htm?id="+zzxcvsdid[1];
     var zxfcxerl =zzxcvsdiw+zzxcvsdiz+zzxcvsdid[1];
    GM_xmlhttpRequest({
       url: zxfcxerl,
       method: 'GET',
               timeout: 10000,
               headers: {
                   'Content-Type': 'application/jsonp',
                   'Accept': 'application/jsonp',
                   'Cache-Control': 'public'
               },
               onload: function(res){
                try{
       const qundata = JSON.parse(res.responseText)

        $("#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');
	}
  zkdtbuul =decodeURIComponent(qundata.url);


  let imgurl='';
  let imgtxt='';
  let yhqtxt='';
  let yhqvtxt='';
  let yhqtime='';
  let yhqfh='';
  let qhj='';
  let yhqbtntxt='';
  let yhqbtnurl='';

		if ( qundata["code"]==0) {
            yhqewmurl=qundata.shorturl;
				if ( qundata["s"]==1) {
     imgurl ='';
   imgtxt='\u624b\u673a\u6dd8\u5b9d\u626b\u7801\u9886\u53d6';
   yhqtxt='\u4f18\u60e0\u52b5\uff1a\u6ee1'+  qundata["coupon_startfee"] +'\u5143\u51cf'+  qundata["coupon_amount"] +'\u5143';
   yhqtime='\u6709\u6548\u671f\u81f3\uff1a'+  qundata["coupon_end_time"];
   yhqvtxt='\u52b5\u540e\u4ef7\uff1a';
   yhqfh='\uffe5';
   qhj=Number(qundata["zk_final_price"])-Number(qundata["coupon_amount"]);
   qhj=Math.round(qhj * 100) / 100;
   yhqbtntxt='\u9886\u5238\u8d2d\u4e70';
   let zkdtlikeltxt='\u67e5\u770b\u76f8\u4f3c';
   yhqbtnurl='';
   zkq_tabhtml = '<div  id="zktb" style="min-width: 461px;"><div  style="margin-top: 10px;background: #f1f1f100;padding: 10px 10px 0px 10px;display:flex;align-items: center;justify-content: space-between;font-family: PingFang SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif;"><div  style="text-align: center;font-size: 14px;width: 25%;"><div   id="zkdqrscode_xp" style="padding: 5px;background: #ffffff;border-radius: 10px;width: 100px;height: auto;"></div><p style="font-size: 12px;width: 100px;">'+imgtxt+'</p></div><div  style="width: 72%;"><p style="margin-bottom:10px;font-size: 18px;font-weight: 700;" >'+yhqtxt+'</p><p style="margin-bottom:10px;font-size: 14px;color:#999;">'+yhqtime+'</p><div  style="display: flex;justify-content: space-between;align-items: flex-start;"><div ><span style="font-size:14px">'+yhqvtxt+'</span><span style="font-size: 16px;font-weight: 700;color: #F40;">'+yhqfh+'</span><span style="font-size: 22px;font-weight: 700;font-family: PingFang SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif;color: #F40;">'+qhj+'</span></div><div  style="background: linear-gradient(90deg, rgb(255, 100, 34), rgb(255, 0, 64));font-size: 16px;color: #fff;border-radius: 25px;"><div  class="tbfuter"  style="padding: 10px;border-radius: 20px 0px 0px 20px;  display: inline-block;">'+yhqbtntxt+'</div><div   class="zkdtlikel" style="padding: 10px;border-radius: 0 20px 20px 0; display: inline-block;border-left: 1px dashed #ededed;">'+zkdtlikeltxt+'</div></div></div></div></div></div>';


			}else{
    imgurl ='';
   imgtxt='\u624b\u673a\u6dd8\u5b9d\u626b\u7801\u67e5\u770b';
   yhqtxt='';
   yhqtime='\u6682\u65e0\u4f18\u60e0\u5238';
   yhqvtxt='\u67e5\u770b\u6709\u9690\u85cf\u4f18\u60e0';
   yhqfh='';
   qhj='';
   yhqbtntxt='\u67e5\u8be2\u540c\u6b3e\u5546\u54c1\u4f18\u60e0';
   yhqbtnurl='';
   zkq_tabhtml = ' <div  id="zktb" style="min-width: 461px;"><div  style="margin-top: 10px;background: #f1f1f100;padding: 10px 10px 0px 10px;display:flex; justify-content: space-between; font-family: PingFang SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif;"><div  style="text-align: center;font-size: 14px;width: 25%;"><div   id="zkdqrscode_xp" style="padding: 5px;background: #ffffff;border-radius: 10px;width: 100px;height: auto;"></div><p style="font-size: 12px;width: 100px;">'+imgtxt+'</p></div><div  style="width: 72%;"><p style="margin-bottom:10px;font-size: 18px;font-weight: 700;" >'+yhqtxt+'</p><p style="margin-bottom:10px;font-size: 14px;color:#999;">'+yhqtime+'</p><div  style="display: flex;justify-content: space-between;align-items: flex-start;"><div  style="background: linear-gradient(90deg, rgb(255, 100, 34), rgb(255, 0, 64));font-size: 16px;color: #fff;border-radius: 25px;"><div  class="tbfuter"  style="padding: 10px;border-radius: 20px 0px 0px 20px;  display: inline-block;">'+yhqvtxt+'</div><div   class="zkdtonel" style="padding: 10px;border-radius: 0 20px 20px 0; display: inline-block;border-left: 1px dashed #ededed;">'+yhqbtntxt+'</div></div></div></div></div></div>';
			}
		} else {
    imgurl ='';
   imgtxt='\u624b\u673a\u6dd8\u5b9d\u626b\u7801\u67e5\u770b';
   yhqtxt='';
   yhqtime='\u6682\u65e0\u4f18\u60e0\u5238';
   yhqvtxt='\u67e5\u8be2\u76f8\u4f3c\u5546\u54c1\u4f18\u60e0';
   yhqfh='';
   qhj='';
   yhqtxt='';
   yhqbtntxt='\u67e5\u8be2\u540c\u6b3e\u5546\u54c1\u4f18\u60e0';
   yhqbtnurl='';
   zkq_tabhtml = ' <div  id="zktb" style="min-width: 461px;"><div  style="margin-top: 10px;background: #f1f1f100;padding: 10px 10px 0px 10px;display:flex; justify-content: space-between; font-family: PingFang SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif;"><div  style="text-align: center;font-size: 14px;width: 25%;"><div   id="zkdqrscode_xp" style="padding: 5px;background: #ffffff;border-radius: 10px;width: 100px;height: auto;"></div><p style="font-size: 12px;width: 100px;">'+imgtxt+'</p></div><div  style="width: 72%;"><p style="margin-bottom:10px;font-size: 18px;font-weight: 700;" >'+yhqtxt+'</p><p style="margin-bottom:10px;font-size: 14px;color:#999;">'+yhqtime+'</p><div  style="display: flex;justify-content: space-between;align-items: flex-start;"><div  style="background: linear-gradient(90deg, rgb(255, 100, 34), rgb(255, 0, 64));font-size: 16px;color: #fff;border-radius: 25px;"><div  class="zkdtlikel"  style="padding: 10px;border-radius: 20px 0px 0px 20px;  display: inline-block;">'+yhqvtxt+'</div><div   class="zkdtonel" style="padding: 10px;border-radius: 0 20px 20px 0; display: inline-block;border-left: 1px dashed #ededed;">'+yhqbtntxt+'</div></div></div></div></div></div>';

		}
        let  viwezr=0;
        if ($('div[class^="Price--sale--"]').length>0 && viwezr==0){

            viwezr=1;
           let  id= 'div[class^="Price--sale--"]';
              htmadd(id,yhqewmurl,zkq_tabhtml) ;
        }
        if ($('div[class^="Price--normal--"]').length>0){
         let  id= 'div[class^="Price--normal--"]';
              htmadd(id,yhqewmurl,zkq_tabhtml);
          viwezr=1;
        }
        if ($('dl[class="tm-shopPromo-panel"]').length>0 && viwezr==0){

            let  id='dl[class="tm-shopPromo-panel"]';
              htmadd(id,yhqewmurl,zkq_tabhtml);
            viwezr=1;
        }
        if ($('li[id="J_MorePromoSlider"]').length>0 && viwezr==0){

      let  id= 'li[id="J_MorePromoSlider"]';
              htmadd(id,yhqewmurl,zkq_tabhtml);
            viwezr=1;
        }



        }catch(e){
        }
        }
      });

      $('.tm-qrcode-pic').hide();
      setInterval(function() {$('div[style="min-width: 460px;"]').remove(); }, 500);

}
function htmlstart(name) {
	if( baidspjayumin.indexOf("tmall.com") >= 0|| baidspjayumin.indexOf("taobao.com") >= 0|| baidspjayumin.indexOf("tmall.hk") >= 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') {
                name = $('meta[name=keywords]').attr('content');
            var tmall = '<div  id="max-test"><p> <br/></p></div><div  id="containerlishi" style="height: 200px; margin: 0; "></div>';

           chalishi('https%3A%2F%2Fdetail.tmall.com%2Fitem.htm%3Fid%3D'+zkdmmxmi[1]);
                $('.tb-sku').append(tmall);
                $("div[class*='BasicContent--actions']").after(tmall);
                xiugai(name);
            } else if (host == 'item.taobao.com') {
                name = $('.tb-main-title').attr('data-title');
                var taobao = '<div  id="max-test"><p> <br/></p></div><div  id="containerlishi" style="height: 200px; margin: 0; "></div>';
                $('.tb-key').append(taobao);
                 $("div[class*='BasicContent--actions']").after(taobao);
                chalishi('https%3A%2F%2Fdetail.tmall.com%2Fitem.htm%3Fid%3D'+zkdmmxmi[1]);
                xiugai(name);
            } else if (host == 'detail.tmall.hk') {
                name = $('meta[name=keywords]').attr('content');
                var tmall_xg = '<div  id="max-test"><p> <br/></p></div><div  id="containerlishi" style="height: 200px; margin: 0; "></div>';
                $('.tb-sku').append(tmall_xg);
                $("div[class*='BasicContent--actions']").after(tmall_xg);
                chalishi('https%3A%2F%2Fdetail.tmall.com%2Fitem.htm%3Fid%3D'+zkdmmxmi[1]);
				xiugai(name);
            } else if (host == 'chaoshi.detail.tmall.com') {
                name = $('input[name=title]').attr('value');
                var cs_tmall = '<div  id="max-test"><p> <br/></p></div><div  id="containerlishi" style="height: 200px; margin: 0; "></div>';
    chalishi('https%3A%2F%2Fdetail.tmall.com%2Fitem.htm%3Fid%3D'+zkdmmxmi[1]);
                $('.tb-sku').append(cs_tmall);
                $("div[class*='BasicContent--actions']").after(cs_tmall);
xiugai(name);
            }



        }

        if ($('#max-search').length <= 0) {
            if (host == 'www.taobao.com') {
                var tb_search = '<div  id="max-search" style="position: absolute;right: -108px;top:0px;width: 100px;height: 36px;text-align: center;line-height: 36px;border-radius: 9px;color: #ffffff;background-image: linear-gradient(145deg,#ff9000,#ff5000 77%);font-size: 18px;font-weight: 700;"><asd  id="max-search-a" style="color:white;" >搜优惠券</asd></div>';
                $('.search-bd').append(tb_search);
                  $(".tbh-qr-wrapper").css("right","0px");
                 	   $("body").on("click","#max-search-a",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;z-index: 99999999999;" id="max-search"><asd  id="max-search-a" style="color:white;" >搜优惠券</asd></div>';
                $("div[class='search']").append(stb_search);
              $(".grid-left").css("margin-top","20px");

      	   $("body").on("click","#max-search-a",function(){
                    kuaisearch()
                })

            } else if (host == 'www.tmall.com' || host == 'list.tmall.com') {
                var tmall_search =  '<div  id="max-search" style="position: absolute;right: 0px;top:0px;width: 100px;height: 40px;text-align: center;line-height: 40px;border-radius: 0 20px 20px 0;border-left:1px solid #bfaaaa;background: #fe0137;font-size: 16px;"><asd  id="max-search-a" style="color:white;" >搜优惠券</asd></div>';
                $("div[class^='rax-view-v2 SearchInput--searchButton--']").css("border-radius","20px 0 0 20px");
                $("div[class^='rax-view-v2 SearchInput--searchButton--']").css("right","100px");
                $("div[class^='rax-view-v2 SearchInput--searchButton--']").after(tmall_search);
                $("div[class^='rax-view-v2 SearchInput--searchInput--']").css("width","740px");
          	   $("body").on("click","#max-search-a",function(){
                    kuaisearch()
                })
            } else if (host == 'detail.tmall.com' || host == 'detail.tmall.hk') {
                var tmall_search =  '<div  id="max-search" style="position: absolute;right: 80px;top:0px;width: 80px;height: 40px;text-align: center;line-height: 36px;color: #ffffff;background: #fe0137;font-size: 16px;"><asd  id="max-search-a" style="color:white;" >搜优惠券</asd></div>';
$('#mallSearch').css("cssText", "width:630px !important;");                $("#J_CurrShopBtn").after(tmall_search);
       var tmalli_search =  '<div  id="max-search" style="position: absolute;    right: -90px;   top: 20px;    width: 80px;    height: 40px;    text-align: center;    line-height: 40px;    color: #ffffff;    background: #ffffff;    font-size: 14px;    font-family: PingFangSC-Medium;  border: 1px solid #eee;border-radius: 21px"><asd  id="max-search-a" style="color: black;" >搜优惠券</asd></div>';
$(".SearchHeader--rightContent--29ktqoH").append(tmalli_search);

               	   $("body").on("click","#max-search-a",function(){
                    kuaisearch()
                })
            }
               else if (window.location.href.indexOf("item.taobao.com/item.htm") >= 0) {
                var tmall_search =  '<div  id="max-search" style="margin-left: 3px;top:0px;width: 70px;height: 30px;text-align: center;line-height: 30px;color: #ffffff;background-image: linear-gradient(145deg,#ff9000,#ff5000 77%);font-size: 13px;    float: right;"><asd  id="max-search-a" style="color:white;" >搜优惠券</asd></div>';

$('.search-buttons .J_SecondarySearch').after(tmall_search);



        	   $("body").on("click","#max-search-a",function(){
                    kuaisearch()
                })
            }
               else if (window.location.href.indexOf("chaoshi.detail.tmall.com") >= 0 ||window.location.href.indexOf("chaoshi.tmall.com") >= 0) {

                var tmall_search =  '<div  id="max-search" style="position: absolute;    right: 0px;    top: 0px;    width: 80px;    height: 30px;    text-align: center;  line-height: 30px;background: #30b30e;   font-size: 16px;z-index: 9999;"><asd  id="max-search-a" style="color:white;" >搜优惠券</asd></div>';

 $(".mallSearch-input div[class='s-combobox']").after(tmall_search);
 $(".mallSearch-input button[type='submit'] ").css("right","81px");
 $(".mallSearch-input button[type='submit'] ").css("z-index","999");


        	   $("body").on("click","#max-search-a",function(){
                    kuaisearch()
                })
            }
        }
}


$("body").on('click', '.tbfuter', function() {
    window.location.href=zkdtbuul; 
  })
  $("body").on('click', '.zkdtlikel', function() {
    GM_openInTab(zkdtlikel, {active: !0});
  })
  $("body").on('click', '.zkdtonel', function() {
    let kw=$(".tb-detail-hd").find("h1").eq(0).text();
    if (kw){
    } else if ($(".tb-main-title").length>0) {
     kw=$(".tb-main-title").text();
    }else if ($("h1[class^='ItemHeader--']").length>0) {
     kw=$("h1[class^='ItemHeader--']").text();
    }
    kw=kw.replace(/ /g,'').replace(/[\r\n]/g,"");
   kw=kw.replace(/	/g,'');
    kw=kw.replace(/【(\S*)】/ig," ");
    kw=kw.replace(/\((\S*)\)/ig," ");
    kw=kw.replace(/((\S*))/ig," ");
    var lian = "https://q.dadiyouhui.cn/new.asp?r=/l&kw=" + encodeURIComponent(kw)+"&sort=0";
  window.location.href=lian; 
  })
}
	}
var ccurl = location.href;
var baidspjayumin=document.domain;
var consame=1;
 	if ($(".layui-xzxform-label").length > 0){
 		 consame= 1;
  }else{
  	     $("body").append('  <div  class="layui-xzxform-label"  ></div>'  );
  	     consame= 0;
  }
   if (window.top == window.self){
    if (consame==0){
    	$(document).ready(function(){
	  	  setTimeout(function(){
     htmlstart(name);
      htmljdstart(name);
            }, 500);
	      })
   	    	}
if(consame==1){

}


	function xiudgai(name) {

   let  zkq_tabhtml = "";

           var  zzxcvsdiw="https://www.dadiyouhui02.cn/";
           var  zzxcvsdiz="test_tkjdd_idinfo.php?id=";
           var currentUrl = window.location.href;
           var jdgooul = currentUrl.match(/\/(\d{5,16}).html/);
           var yhqewmurl="";
           if (jdgooul){
           yhqewmurl="https://item.jd.com/"+jdgooul[1]+".html";
           }
     var zxfcxerl =zzxcvsdiw+zzxcvsdiz+name;
    GM_xmlhttpRequest({
       url: zxfcxerl,
       method: 'GET',
               timeout: 10000,
               headers: {
                   'Content-Type': 'application/jsonp',
                   'Accept': 'application/jsonp',
                   'Cache-Control': 'public'
               },
               onload: function(res){
                try{
                    const qundata = JSON.parse(res.responseText)
        $("#zkq_table tbody tr").remove();

  zkdtbuul =decodeURIComponent(qundata.url);
  let imgurl='';
  let imgtxt='';
  let yhqtxt='';
  let yhqvtxt='';
  let yhqtime='';
  let yhqfh='';
  let qhj='';
  let yhqbtntxt='';
  let yhqbtnurl='';
		if ( qundata["code"]==0) {
            yhqewmurl=qundata.shorturl;

				if ( qundata["s"]==1) {
    imgurl ='';
   imgtxt='\u624b\u673a\u4eac\u4e1c\u626b\u7801\u9886\u53d6';
   yhqtxt='\u4f18\u60e0\u52b5\uff1a\u6ee1'+  qundata["coupon_startfee"] +'\u5143\u51cf'+  qundata["coupon_amount"] +'\u5143';
   yhqtime='\u6709\u6548\u671f\u81f3\uff1a'+  qundata["coupon_end_time"];
   yhqvtxt='\u52b5\u540e\u4ef7\uff1a';
   yhqfh='\uffe5';
   qhj=qundata["qhj"];
   yhqbtntxt='\u9886\u5238\u8d2d\u4e70';
   let zkdtlikeltxt='\u67e5\u770b\u76f8\u4f3c';
   yhqbtnurl='';
   zkq_tabhtml = '<div  id="zktb" style="min-width: 461px;"><div  style="margin-top: 10px;background: #f1f1f100;padding: 10px 10px 0px 10px;display:flex;align-items: center;justify-content: space-between;font-family: PingFang SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif;"><div  style="text-align: center;font-size: 14px;width: 25%;"><div   id="zkdqrscode_xp" style="padding: 5px;background: #ffffff;border-radius: 10px;width: 100px;height: auto;"></div><p style="font-size: 12px;width: 100px;">'+imgtxt+'</p></div><div  style="width: 72%;"><p style="margin-bottom:10px;font-size: 18px;font-weight: 700;" >'+yhqtxt+'</p><p style="margin-bottom:10px;font-size: 14px;color:#999;">'+yhqtime+'</p><div  style="display: flex;justify-content: space-between;align-items: flex-start;"><div ><span style="font-size:14px">'+yhqvtxt+'</span><span style="font-size: 16px;font-weight: 700;color: #F40;">'+yhqfh+'</span><span style="font-size: 22px;font-weight: 700;font-family: PingFang SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif;color: #F40;">'+qhj+'</span></div><div  style="background: linear-gradient(90deg, rgb(255, 100, 34), rgb(255, 0, 64));font-size: 16px;color: #fff;border-radius: 25px;"><div  class="tbfuter"  style="padding: 10px;border-radius: 20px 0px 0px 20px;  display: inline-block;">'+yhqbtntxt+'</div><div   class="zkdtlikel" style="padding: 10px;border-radius: 0 20px 20px 0; display: inline-block;border-left: 1px dashed #ededed;">'+zkdtlikeltxt+'</div></div></div></div></div></div>';
			}else{
 imgurl ='';
 imgtxt='\u624b\u673a\u4eac\u4e1c\u626b\u7801\u67e5\u770b';
 yhqtxt='';
 yhqtime='\u6682\u65e0\u4f18\u60e0\u5238';
 yhqvtxt='\u67e5\u770b\u6709\u9690\u85cf\u4f18\u60e0';
 yhqfh='';
 qhj='';
 yhqbtntxt='\u67e5\u8be2\u540c\u6b3e\u5546\u54c1\u4f18\u60e0';
 yhqbtnurl='';
 zkq_tabhtml = ' <div  id="zktb" style="min-width: 461px;"><div  style="margin-top: 10px;background: #f1f1f100;padding: 10px 10px 0px 10px;display:flex; justify-content: space-between; font-family: PingFang SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif;"><div  style="text-align: center;font-size: 14px;width: 25%;"><div   id="zkdqrscode_xp" style="padding: 5px;background: #ffffff;border-radius: 10px;width: 100px;height: auto;"></div><p style="font-size: 12px;width: 100px;">'+imgtxt+'</p></div><div  style="width: 72%;"><p style="margin-bottom:10px;font-size: 18px;font-weight: 700;" >'+yhqtxt+'</p><p style="margin-bottom:10px;font-size: 14px;color:#999;">'+yhqtime+'</p><div  style="display: flex;justify-content: space-between;align-items: flex-start;"><div  style="background: linear-gradient(90deg, rgb(255, 100, 34), rgb(255, 0, 64));font-size: 16px;color: #fff;border-radius: 25px;"><div  class="tbfuter"  style="padding: 10px;border-radius: 20px 0px 0px 20px;  display: inline-block;">'+yhqvtxt+'</div><div   class="zkdtonel" style="padding: 10px;border-radius: 0 20px 20px 0; display: inline-block;border-left: 1px dashed #ededed;">'+yhqbtntxt+'</div></div></div></div></div></div>';

			}

		} else {
    imgurl ='';
   imgtxt='\u624b\u673a\u4eac\u4e1c\u626b\u7801\u67e5\u770b';
   yhqtxt='';
   yhqtime='\u6682\u65e0\u4f18\u60e0\u5238';
   yhqvtxt='\u67e5\u8be2\u76f8\u4f3c\u5546\u54c1\u4f18\u60e0';
   yhqfh='';
   qhj='';
   yhqtxt='';
   yhqbtntxt='\u67e5\u8be2\u540c\u6b3e\u5546\u54c1\u4f18\u60e0';
   yhqbtnurl='';
   zkq_tabhtml = ' <div  id="zktb" style="min-width: 461px;"><div  style="margin-top: 10px;background: #f1f1f100;padding: 10px 10px 0px 10px;display:flex; justify-content: space-between; font-family: PingFang SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif;"><div  style="text-align: center;font-size: 14px;width: 25%;"><div   id="zkdqrscode_xp" style="padding: 5px;background: #ffffff;border-radius: 10px;width: 100px;height: auto;"></div><p style="font-size: 12px;width: 100px;">'+imgtxt+'</p></div><div  style="width: 72%;"><p style="margin-bottom:10px;font-size: 18px;font-weight: 700;" >'+yhqtxt+'</p><p style="margin-bottom:10px;font-size: 14px;color:#999;">'+yhqtime+'</p><div  style="display: flex;justify-content: space-between;align-items: flex-start;"><div  style="background: linear-gradient(90deg, rgb(255, 100, 34), rgb(255, 0, 64));font-size: 16px;color: #fff;border-radius: 25px;"><div  class="zkdtlikel"  style="padding: 10px;border-radius: 20px 0px 0px 20px;  display: inline-block;">'+yhqvtxt+'</div><div   class="zkdtonel" style="padding: 10px;border-radius: 0 20px 20px 0; display: inline-block;border-left: 1px dashed #ededed;">'+yhqbtntxt+'</div></div></div></div></div></div>';
		}

           let  id=".summary-top";
              htmadd(id,yhqewmurl,zkq_tabhtml)
    }catch(e){
        }
        }
      });
      $('.toolbar-qrcode').hide();
      $('#zkdqrscode_xp').qrcode({width: 100,height: 100,text: yhqewmurl});
      setInterval(function() {$('div[style="min-width: 460px;"]').remove(); }, 500);


}

function htmljdstart(name) {
 	  var currentUrl = window.location.href;
  if( baidspjayumin.indexOf("jd.com") >= 0 || baidspjayumin.indexOf("jd.hk") >= 0) {
  	  if($("#zktb").length<=0  ){
            if (currentUrl.indexOf("search.jd.com/Search") >= 0) {
            		 if ($('#max-search').length <= 0) {
                var j_search = '<div  id="max-search" style="position: absolute;right: -111px;top:0px;width: 100px;height: 36px;text-align: center;line-height: 36px; color: #ffffff;background: #f30213;font-size: 16px;"><asd  id="max-search-a" style="color:white;" >搜优惠券</asd></div>';
                 $("button[class='button cw-icon']").after(j_search);
                 	 $("#settleup-2014").css("left","100px");
                $('#max-search-a').click(function() {
              gosearch();
                })
            }
     }else if (currentUrl.indexOf("item.jd.com/") >= 0) {
     	 		 if ($('#max-search').length <= 0) {
                var j_search = '<div  id="max-search" style="position: absolute;right: -70px;top:0px;width: 70px;height: 36px;text-align: center;line-height: 36px; color: #ffffff;background: #f30213;font-size: 13px;"><asd  id="max-search-a" style="color:white;" >搜优惠券</asd></div>';
                 $("button[class='button button01']").after(j_search);
                  $("#settleup-2014").css("left","100px");
                $('#max-search-a').click(function() {
              gosearch();
                })
            }
}else if (currentUrl.indexOf("mall.jd.com") >= 0) {
     	 		 if ($('#max-search').length <= 0) {
    var j_search = '<div  id="max-search" style="position: absolute;right: -70px;top:0px;width: 70px;height: 36px;text-align: center;line-height: 36px; color: #ffffff;background: #f30213;font-size: 13px;"><asd  id="max-search-a" style="color:white;" >搜优惠券</asd></div>';
                 $("button[class='button01']").after(j_search);
                  $("#settleup-2014").css("left","100px");
                $('#max-search-a').click(function() {
              gosearch();
                })
            }
}else if (window.location.host== "www.jd.com" && $("div[role='serachbox']").length>0) {
     	 		 if ($('#max-search').length <= 0) {
    var j_search = '<div  id="max-search" style="position: absolute;right: -75px;top:-2px;width: 70px;height: 36px;text-align: center;line-height: 36px; color: #ffffff;background: #f30213;font-size: 13px;"><asd  id="max-search-a" style="color:white;" >搜优惠券</asd></div>';
                 $(".form button[class='button']").after(j_search);
                  $("#settleup").css("right","180px");
                $('#max-search-a').click(function() {
              gosearch();
                })
            }
}else if (window.location.host.indexOf(".jd.hk") >= 0 && $("button[class='button action-search-worldwide cw-icon']").length>0) {
    if ($('#max-search').length <= 0) {
var j_search = '<div  id="max-search" style=" position: absolute;right: -90px;width: 85px;height: 36px;text-align: center;line-height: 36px; color: #ffffff;background: #f30213;font-size: 16px;"><asd  id="max-search-a" style="color:white;" >搜优惠券</asd></div>';
$("button[class='button action-search-worldwide cw-icon']").after(j_search);
   $(".mod_service").css("width","auto");
 $('#max-search-a').click(function() {
gosearch();
 })
}
}
	  var jdgooul = ccurl.match(/\/(\d{5,16}).html/);
     if (jdgooul){
   var init = "<div  id='zkq_div'></div>";
 var taobao = '<div  id="max-test"><p> <br/></p></div><div  id="containerlishi" style="height: 200px; margin: 0; "></div>';

     $("#choose-btns").after(init+ taobao);



  xiudgai(jdgooul[1]);
chalishi('https%3a%2f%2fitem.jd.com%2f'+jdgooul[1]+'.html');

$("body").on('click', '.tbfuter', function() {
    window.location.href=zkdtbuul; 
  })
  $("body").on('click', '.zkdtlikel', function() {
    let kw=$("div[class='sku-name']").text().replace(/ /g,'').replace(/[\r\n]/g,"");
  if ($(".item > a[clstag='shangpin|keycount|product|mbNav-3']").length>0  ){
  	  kw=$(".item > a[clstag='shangpin|keycount|product|mbNav-3']").text();
}
  if ($(".item > a[clstag='shangpin|keycount|product|mbNav-4']").length>0  ){
  	  kw=$(".item > a[clstag='shangpin|keycount|product|mbNav-4']").text();
}
    if (kw){
        kw=kw.replace(/	/g,'');
        kw=kw.replace(/(^\s*)|(\s*$)/g, "");
        kw=kw.replace(/【(\S*)】/ig," ");
    kw=kw.replace(/\((\S*)\)/ig," ");
    kw=kw.replace(/((\S*))/ig," ");
    }

    var lian = "https://q.dadiyouhui.cn/app/apphtml.php?index=like&type=1&item_id="+jdgooul[1]+"&likecidname="+encodeURIComponent(kw.substring(0,8));
      window.location.href=lian; 
  })
  $("body").on('click', '.zkdtonel', function() {
    let kw=$("div[class='sku-name']").text().replace(/ /g,'').replace(/[\r\n]/g,"");
      if ($("div[class='item ellipsis']").length>0  ){
  	  kw=$("div[class='item ellipsis']").text();
}
    kw=kw.replace(/	/g,'');
    kw=kw.replace(/【(\S*)】/ig," ");
    kw=kw.replace(/\((\S*)\)/ig," ");
    kw=kw.replace(/((\S*))/ig," ");
    let kwkey=encodeURIComponent(kw.substring(0,8));
	  kwkey=window.btoa(kwkey);
    var lian = "https://q.dadiyouhui.cn/app/appindex.php?index=kw&kw=" + kwkey+"&zkindex=2";
 window.location.href=lian; 
  })
            };
	  	   }
	  	   }
	  	    }

}