在您安装前,Greasy Fork 希望您知道此脚本包含可能不受欢迎的功能,也许会帮助脚本作者获利,而不能给你带来任何收益。
作者从这份脚本获得佣金,例如透过改写链接或提供优惠券代码以包含推荐或附属代码。
脚本作者的说明:
【应GreasyFork代码规范要求:含有优惠券查询功能的脚本必须添加此提示!在此感谢大家的理解..】
自动查询天猫优惠券、京东优惠券,商品历史价格走势,购物比价,领券下单后的返利需在公众号提现
目前为
// ==UserScript== // @name 【购物助手】自动查询天猫优惠券、京东优惠券,历史价格,购物比价,一键查询,方便领取。自带高佣返利通道比同类型领券返利平台高50%-200% // @namespace http://gongju.dadiyouhui03.cn/app/tool/youhou/index.html // @version 108 // @description 自动查询天猫优惠券、京东优惠券,商品历史价格走势,购物比价,领券下单后的返利需在公众号提现 // @match *://*.taobao.com/* // @match *://*.tmall.com/* // @match *://*.tmall.hk/* // @match *://*.liangxinyao.com/* // @match *://*.jd.com/* // @match *://*.jd.hk/* // @match *://*.yiyaojd.com/* // @require https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js // @require https://cdn.staticfile.org/sweetalert/2.1.2/sweetalert.min.js // @require https://cdn.staticfile.org/jquery.qrcode/1.0/jquery.qrcode.min.js // @require https://cdn.staticfile.org/html2canvas/0.5.0-beta4/html2canvas.js // @require https://cdn.staticfile.org/echarts/5.0.1/echarts.min.js // @grant GM_addStyle // @grant GM_download // @grant GM_xmlhttpRequest // @grant GM_getResourceText // @run-at document-idle // @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== // 【淘宝优惠券查询】最高返90%! // 【淘宝、京东返利】最高返90%! // 【历史价格走势】 // 【商品相似推荐】 //修复部分商品历史无法显示的BUG,欢迎反馈 function kuaisearch() { var lian = "http://q.dadiyouhui.cn/new.asp?input=2&r=l&kw=" + $('.search-combobox-input').val(); window.open(lian); } function gosearch() { var lian = "http://q.dadiyouhui.cn/new.asp?input=2&r=l&kw=" + $('#J_Header_js').val(); window.open(lian); } function tiansearch() { var lian = "http://q.dadiyouhui.cn/new.asp?input=2&r=l&kw=" + $('.s-combobox-input').val(); window.open(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: 10000, headers: { 'Content-Type': 'application/jsonp', 'Accept': 'application/jsonp', 'Cache-Control': 'public' }, onload: function(res){ try{ const t = JSON.parse(res.responseText) //console.log(t); 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"); } } }); } 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_tabcss = `.zkq_tab{border:1px solid #f40;border-collapse:collapse}.zkq_tab thead{font-size:14px;text-align:center}.zkq_tab tr th{padding:10px 20px;text-align:center}.zkq_tab tr td{padding:10px 20px;text-align:center;font-size:14px}.zkq_tab tr td a{text-decoration:none}.zkq_tab_taobao{margin-bottom:15px}.zkq_tab_taobao thead{background-color:#f40;color:#FFF}.zkq_tab_taobao tr td{border:1px solid #e6602d;color:#e6602d}.zkq_tab_taobao tr td a{color:#e6602d}.zkq_tab_tmall{margin-bottom:15px}.zkq_tab_tmall thead{background-color:#ff0036;color:#FFF}.zkq_tab_tmall tr td{border:1px solid #ff0036;color:#ff0036}.zkq_tab_tmall tr td a{color:#ff0036}`; GM_addStyle(zkq_tabcss); 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' >\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="; $(".chakanlike").attr("href","http://q.dadiyouhui.cn/app/apphtml.php?index=like&type=0&item_id="+zzxcvsdid[1]); $.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 = decodeURIComponent(data.url); 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); }); } var url = 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==1){}else{ 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') { 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="" target="_blank" class="chakanlike" >查看相似</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><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); 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="" target="_blank" class="chakanlike" >查看相似</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><div id="containerlishi" style="height: 200px; margin: 0; "></div>'; $('.tb-key').append(taobao); chalishi('https%3A%2F%2Fdetail.tmall.com%2Fitem.htm%3Fid%3D'+zkdmmxmi[1]); 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="" target="_blank" class="chakanlike" >查看相似</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><div id="containerlishi" style="height: 200px; margin: 0; "></div>'; $('.tb-sku').append(tmall_xg); chalishi('https%3A%2F%2Fdetail.tmall.com%2Fitem.htm%3Fid%3D'+zkdmmxmi[1]); 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="" target="_blank" class="chakanlike" >查看相似</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><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); xiugai(name); } $('#max-test').after('<div style="display:none; text-align: center; position: absolute; left: 0; margin: 0px auto; margin-top: -20px; 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() }); } } } } function xiudgai(name) { var tb = /taobao.com/i; var tm = /tmall/i; var currentUrl = window.location.href; if (tb.test(currentUrl)) { $('#zkq_table').addClass('zkq_tab_taobao'); } else { $('#zkq_table').addClass('zkq_tab_tmall'); } var zzxcvsdiw="https://www.dadiyouhui02.cn/"; var zzxcvsdiz="test_tkjd_idinfo.php?id="; $.getJSON(zzxcvsdiw+zzxcvsdiz+name, 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 =decodeURIComponent(data.url); 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); }); } if( baidspjayumin.indexOf("jd.com") >= 0 || baidspjayumin.indexOf("jd.hk") >= 0) { var jdgooul = url.match(/\/(\d{5,16}).html/); if (jdgooul){ let zkq_tabcss = `.zkq_tab{margin-left: 20px;text-align:center;border:1px solid #f40;border-collapse:collapse}.zkq_tab thead{font-size:14px;text-align:center}.zkq_tab tr th{padding:10px 20px;text-align:center}.zkq_tab tr td{padding:10px 30px;text-align:center;font-size:14px}.zkq_tab tr td a{text-decoration:none}.zkq_tab_taobao{margin-bottom:15px}.zkq_tab_taobao thead{background-color:#f40;color:#FFF}.zkq_tab_taobao tr td{border:1px solid #e6602d;color:#e6602d}.zkq_tab_taobao tr td a{color:#e6602d}.zkq_tab_tmall{margin-bottom:15px}.zkq_tab_tmall thead{background-color:#ff0036;color:#FFF}.zkq_tab_tmall tr td{border:1px solid #ff0036;color:#ff0036}.zkq_tab_tmall tr td a{color:#ff0036}`; GM_addStyle(zkq_tabcss); 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/new.asp?r=index/classify&kw=" + encodeURI(name)+"';\">\u6B63\u5728\u67E5\u8BE2\u4F18\u60E0\u4FE1\u606F\uFF0C\u8BF7\u7A0D\u5019...</td></tr></tbody></table></div>"; 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 class="chakanlike" 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="" target="_blank">查看相似</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><div id="containerlishi" style="height: 200px; margin: 0; "></div>'; $("#choose-btns").after(init+ taobao); $('#max-test').after('<div style="display:none; text-align: center; position: absolute; left: 0; margin: 0px auto; margin-top: -25px; 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/my/tkljdpdd.php?type=j&sf='+jdgooul[1]}); 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(); }); let title=$("div[class='sku-name']").text().replace(/ /g,'').replace(/[\r\n]/g,"").substring(0,8); $(".chakanlike").attr("href","http://q.dadiyouhui.cn/app/apphtml.php?index=like&type=1&item_id="+jdgooul[1]+"&likecidname="+title); xiudgai(jdgooul[1]); chalishi('https%3a%2f%2fitem.jd.com%2f'+jdgooul[1]+'.html'); }; } } }