Greasy Fork is available in English.

一键领取淘宝、天猫隐藏优惠券!【免费领取3.8节红包、外卖红包、公交地铁红包】

1查询商家设置的隐藏优惠券,省钱开心购物,直接领取优惠券购买,免费领取3.8节红包、外卖红包、公交地铁红包;2、不好用了请反馈给我更新(QQ群:668600818)。

// ==UserScript==
// @name         一键领取淘宝、天猫隐藏优惠券!【免费领取3.8节红包、外卖红包、公交地铁红包】
// @namespace    http://52taob.xyr3h.cn
// @version      1.0.7
// @description  1查询商家设置的隐藏优惠券,省钱开心购物,直接领取优惠券购买,免费领取3.8节红包、外卖红包、公交地铁红包;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/*
// @require      https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js
// @grant        GM_openInTab
// ==/UserScript==

(function () {
    'use strict';
    $(document).ready(function () {
        var host = window.location.host;
        var productNm = '';
        var coupon = "http://52taob.xyr3h.cn/index.php?r=searchlist&kwd=";
        var RedPacket = "https://shimo.im/docs/QV98k9PHRGkk6kvG/";
        var DPacket = "https://m.tb.cn/h.4OeBx9O";
        var EPacket = "https://s3.ax1x.com/2021/03/02/6kcaUU.png";
        var Clabel = "领取商品优惠券";
        var Rlabel = "找券机器人|最新活动";
        var Dlabel = "3.8节超级红包";
        var Elabel = "3.8节超级红包手机扫码";
        var cssSelector = '';
        if (host.indexOf('taobao.com') > 0) {
            productNm = $.trim($('.tb-main-title').text());
            cssSelector = '.tb-action';
        } else if (host == 'chaoshi.detail.tmall.com') {
            productNm = $.trim($('.tb-detail-hd h1').text());
            cssSelector = '.tb-action';
        } else if (host.indexOf('tmall.com') > 0 || host == 'detail.liangxinyao.com') {
            productNm = $.trim($('.tb-detail-hd h1').text());
            cssSelector = '.tb-action';
        }
        $(cssSelector).append(obtainAppendHtml(host, coupon, productNm, Clabel, RedPacket, Rlabel,Dlabel,Elabel,DPacket,EPacket));
    });

    function obtainAppendHtml(host, coupon, productNm, Clabel, RedPacket, Rlabel,Dlabel,Elabel,DPacket,EPacket) {
        if (host.indexOf('taobao.com') > 0) {
            return '<div class="div-inline"><div class="tb-btn-buy" style="padding-top:11px;"><a href="' + coupon + encodeURI(productNm) + '" target="_blank">' + Clabel + '</a></div></div>'
                +'<div class="div-inline"><div class="tb-btn-add" style="padding-top:11px;"><a href="' + RedPacket + '" target="_blank">' + Rlabel + '</a></div></div>'
            +'<div class="div-inline"><div class="tb-btn-buy" style="padding-top:11px;"><a href="' + DPacket + ' " title="每天可拆,可以领到3月8号" target="_blank">' + Dlabel + '</a></div></div>'
            +'<div class="div-inline"><div class="tb-btn-add" style="padding-top:11px;"><a href="' + EPacket + '"  title="每天可拆,可以领到3月8号" target="_blank">' + Elabel + '</a></div></div>';
        } else if (host == 'chaoshi.detail.tmall.com' ) {
            return '<br/><br/><br/><div class="div-inline"><div class="tb-btn-buy tb-btn-sku"  style="padding-top:11px;"><a href="' + coupon + encodeURI(productNm) + '" target="_blank">' + Clabel + '</a></div></div>'
                +'<div class="div-inline"><div class="tb-btn-basket tb-btn-sku " style="padding-top:11px;"><a href="' + RedPacket + '" target="_blank">' + Rlabel + '</a></div></div>'
            +'<div class="div-inline"><div class="tb-btn-buy tb-btn-sku"  style="padding-top:11px;"><a href="' + DPacket + '" title="每天可拆,可以领到3月8号" target="_blank">' + Dlabel + '</a></div></div> '
            +'<div class="div-inline"><div class="tb-btn-basket tb-btn-sku " style="padding-top:11px;"><a href="' + EPacket + '" title="每天可拆,可以领到3月8号" target="_blank">' + Elabel + '</a></div></div>';
        } else if (host.indexOf('tmall.com') > 0 || host == 'detail.liangxinyao.com') {
            return '<div class="div-inline"><div class="tb-btn-buy tb-btn-sku"  style="padding-top:11px;"><a href="' + coupon + encodeURI(productNm) + '" target="_blank">' + Clabel + '</a></div></div>'
                +'<div class="div-inline"><div class="tb-btn-basket tb-btn-sku " style="padding-top:11px;"><a href="' + RedPacket + '" target="_blank">' + Rlabel + '</a></div></div>'
            +'<div class="div-inline"><div class="tb-btn-buy tb-btn-sku"  style="padding-top:11px;"><a href="' + DPacket + '" title="每天可拆,可以领到3月8号" target="_blank">' + Dlabel + '</a></div></div>'
            +'<div class="div-inline"><div class="tb-btn-basket tb-btn-sku " style="padding-top:11px;"><a href="' + EPacket + '" title="每天可拆,可以领到3月8号" target="_blank">' + Elabel + '</a></div></div>';
        }
    }
})();