// ==UserScript== // @name 一键领取淘宝、天猫、京东、拼多多、唯品会、抖音隐藏优惠券!全网查券!【免费领取淘宝京东超级红包、外卖红包、出行红包】 // @namespace http://lctnq.yhzu.cn // @version 1.4.5 // @description 1查询商家设置的隐藏优惠券,省钱开心购物,直接领取优惠券购买,免费领取淘宝京东超级红包、外卖红包、公交地铁红包;2、不好用了请反馈给我更新(QQ群:668600818)。 // @author 赤练丶风 // @match *://s.taobao.com/* // @match *://ai.taobao.com/search/* // @match *://list.tmall.com/* // @match *://item.taobao.com/* // @match *://detail.tmall.com/* // @match *://detail.tmall.hk/* // @match *://chaoshi.detail.tmall.com/* // @match *://detail.liangxinyao.com/* // @match *://*.jd.com/* // @match *://*.jd.hk/* // @match *://*.yiyaojd.com/* // @match *://*.jd.com/* // @match *://*.vip.com/* // @match *://*.vipglobal.hk/* // @match *://*.kuaizhan.com/* // @exclude *://login.taobao.com/* // @exclude *://login.tmall.com/* // @exclude *://uland.taobao.com/* // @exclude *://pages.tmall.com/* // @exclude *://wq.jd.com/* // @require https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js // @antifeature referral-link 【应GreasyFork代码规范要求:含有优惠券查询功能的脚本必须添加此提示!脚本使用过程中无任何强制跳转等行为,代码可查,请大家放心!在此感谢大家的理解...】 // @grant GM_openInTab // @grant GM_registerMenuCommand // @grant GM_setValue // @grant GM_getValue // @license AGPL // @require https://greasyfork.org/scripts/456558-myconstant/code/myConstant.js // @downloadURL https://update.greasyfork.org/scripts/413998/%E4%B8%80%E9%94%AE%E9%A2%86%E5%8F%96%E6%B7%98%E5%AE%9D%E3%80%81%E5%A4%A9%E7%8C%AB%E3%80%81%E4%BA%AC%E4%B8%9C%E3%80%81%E6%8B%BC%E5%A4%9A%E5%A4%9A%E3%80%81%E5%94%AF%E5%93%81%E4%BC%9A%E3%80%81%E6%8A%96%E9%9F%B3%E9%9A%90%E8%97%8F%E4%BC%98%E6%83%A0%E5%88%B8%EF%BC%81%E5%85%A8%E7%BD%91%E6%9F%A5%E5%88%B8%EF%BC%81%E3%80%90%E5%85%8D%E8%B4%B9%E9%A2%86%E5%8F%96%E6%B7%98%E5%AE%9D%E4%BA%AC%E4%B8%9C%E8%B6%85%E7%BA%A7%E7%BA%A2%E5%8C%85%E3%80%81%E5%A4%96%E5%8D%96%E7%BA%A2%E5%8C%85%E3%80%81%E5%87%BA%E8%A1%8C%E7%BA%A2%E5%8C%85%E3%80%91.user.js // @updateURL https://update.greasyfork.org/scripts/413998/%E4%B8%80%E9%94%AE%E9%A2%86%E5%8F%96%E6%B7%98%E5%AE%9D%E3%80%81%E5%A4%A9%E7%8C%AB%E3%80%81%E4%BA%AC%E4%B8%9C%E3%80%81%E6%8B%BC%E5%A4%9A%E5%A4%9A%E3%80%81%E5%94%AF%E5%93%81%E4%BC%9A%E3%80%81%E6%8A%96%E9%9F%B3%E9%9A%90%E8%97%8F%E4%BC%98%E6%83%A0%E5%88%B8%EF%BC%81%E5%85%A8%E7%BD%91%E6%9F%A5%E5%88%B8%EF%BC%81%E3%80%90%E5%85%8D%E8%B4%B9%E9%A2%86%E5%8F%96%E6%B7%98%E5%AE%9D%E4%BA%AC%E4%B8%9C%E8%B6%85%E7%BA%A7%E7%BA%A2%E5%8C%85%E3%80%81%E5%A4%96%E5%8D%96%E7%BA%A2%E5%8C%85%E3%80%81%E5%87%BA%E8%A1%8C%E7%BA%A2%E5%8C%85%E3%80%91.meta.js // ==/UserScript== (function() { GM_registerMenuCommand("首选全网查券地址", function() { window.open("https://4kma.cn/mQ3Fr", "_blank"); }); GM_registerMenuCommand("备用淘宝查券地址", function() { window.open("http://lctnq.yhzu.cn", "_blank"); }); GM_registerMenuCommand("外卖出行生活红包(微信扫一扫)", function() { window.open("https://yijllnji.jutuike.cn/#/?code=YIJLLNji", "_blank"); }); GM_registerMenuCommand("重置地址码", function() { const userInput = prompt('请输入重置地址码:'); if (userInput !== null) { GM_setValue('urlid', userInput); alert("重置地址码,初始化中。。。"); location.reload(); } }); })(); (function () { 'use strict'; let MallID = GM_getValue('urlid'); if (!MallID) { MallID = 'initialValue'; GM_setValue('urlid', 46); alert("首次使用脚本,初始化中。。。"); location.reload(); } var MallUrl = "https://hdkcmsd"+MallID+".kuaizhan.com/?cid=CgRCUMw#/" var TBCoupon = MallUrl+"search?keyword="; var JDCoupon = MallUrl+"detail?platform=2&super=1&id=" var VipCoupon = MallUrl+"detail?platform=5&itemid=" var TBSearch = MallUrl+"search?keyword="; var JDSearch = MallUrl+"search?pt=2&keyword=" var VipSearch = MallUrl+"search?pt=5&keyword=" var NewAct = "https://u.jd.com/JbO3gTu"; var Clabel = "领取商品优惠券"; var AllSearch = "全网搜索"; var Rlabel = "京东跨年红包"; var WMPacket = "https://yijllnji.jutuike.cn/#/?code=YIJLLNji"; var VQPacket = "https://kurl03.cn/6ysaN"; var WMlabel = "外卖出行生活红包"; var VQlabel = "京淘活动线报群"; var WMtitle = "外卖出行生活红包(微信扫一扫)"; var VQtitle = "京淘活动线报群"; var TBPacket = "https://m.tb.cn/h.5lnXOvH"; var JDPacket = "https://t.vip.com/SiYeoW286q6"; var VipPacket = "https://t.vip.com/SiYeoW286q6"; var TBlabel = "双12淘宝红包"; var JDlabel = "双12唯品会红包"; var Viplabel = "唯品会红包"; var TBtitle = "每天可拆3次,12月25日-1月8日"; var JDtitle = "每天可拆3次,10月30日-12月14日"; var Viptitle = "每天可拆3次,10月30日-12月14日"; var ButtonSwitch = 0; $(document).ready(function () { var host = window.location.host; var pid = ''; var pname = ''; var cssSelector = ''; pid = location.href; if (host.indexOf('taobao.com') > 0) { pid = pid.split("id=")[1]; pid = pid.split("&")[0]; pname = $.trim($('.tb-main-title').text()); pid=pname; cssSelector = '.tb-action'; alert(pid); alert(pname); } else if (host == 'chaoshi.detail.tmall.com') { pid = pid.split("id=")[1]; pid = pid.split("&")[0]; setTimeout(function(){pname = document.title;pname = pname.split("-tmall.com天猫")[0]; pid=pname;},1000); cssSelector = '.Actions--root--hwEujgc'; } else if (host.indexOf('tmall.hk') > 0) { pid = pid.split("id=")[1]; pid = pid.split("&")[0]; setTimeout(function(){pname = document.title;pname = pname.split("-tmall.com天猫")[0]; pid=pname;},1000); cssSelector = '.Actions--root--hwEujgc'; } else if (host.indexOf('tmall.com') > 0) { pid = pid.split("id=")[1]; pid = pid.split("&")[0]; setTimeout(function(){pname = document.title;pname = pname.split("-tmall.com天猫")[0]; pid=pname;},1000); cssSelector = '.Actions--root--hwEujgc'; } else if (host.indexOf('jd.com') > 0) { pid = window.location.pathname; pid = pid.split("/")[1]; pid = pid.split(".html")[0]; pname = $.trim($('.sku-name').text()); cssSelector = '#choose-btns'; }else if(host.indexOf('kuaizhan.com') > 0){ var urlinvalid = $.trim($('.warn-label-c').text()); if(urlinvalid=="域名不存在"){ MallID++ ; GM_setValue("urlid", MallID); } } else if (host.indexOf('vip.com') > 0) { function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } addGlobalStyle(` .comparePricess { display: block; margin-top: 6px; font-size: 16px; color: #fff; text-align: center; }`); pid = window.location.pathname; pid = pid.split("-")[2]; pid = pid.split(".html")[0]; cssSelector = 'div#J_detail_buy'; setTimeout(() => { pname = document.getElementsByTagName('title')[0].innerHTML; $(cssSelector).after(obtainAppendHtml(host,pid,pname)); }, 2000); } setTimeout(function(){ $(cssSelector).append(obtainAppendHtml(host,pid,pname));},1200); //,Viptitle,Clabel,NewAct,Rlabel,AllSearch,WMlabel,VQlabel,WMPacket,VQPacket,WMtitle,VQtitle,ButtonSwitch }); function obtainAppendHtml(host,pid,pname) { var pubStyle='background: linear-gradient(90deg, rgb(255, 100, 34), rgb(255, 0, 64)); box-shadow: rgba(255, 100, 34, 0.2) 0px 9px 13px 0px; vertical-align: top;'; var fontStyle='display: inline; font-size: 16px; font-weight: bold; color: rgb(255, 255, 255);'; var tmallStyle='background: linear-gradient(90deg, rgb(255, 203, 0), rgb(255, 148, 2)); box-shadow: rgba(255, 203, 0, 0.2) 0px 9px 13px 0px; vertical-align: top;'; var hkStyle='background: linear-gradient(90deg, rgb(157, 111, 250), rgb(139, 36, 220)); box-shadow: rgba(157, 111, 250, 0.2) 0px 9px 13px 0px; vertical-align: top;'; var divClass='Actions--leftButtons--1M3KkF7'; var buyClass='Actions--btn--3islUTb Actions--leftBtn--3kx8kg8 Actions--primaryBtn--1UPmwd4'; var addClass='Actions--btn--3islUTb Actions--rightBtn--3Ma6IDT Actions--primaryBtn--1UPmwd4'; var tbuyClass='