Greasy Fork

Greasy Fork is available in English.

TAOBAO TMALL JD 【内部加强版】 淘宝、天猫、京东内部优惠券 优惠20%以上 使用方便 2018.4.9更新

一个按钮查找淘宝内部优惠券,领取内部优惠券。直接领取优惠券购买。优惠20%以上!

当前为 2018-04-10 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         TAOBAO TMALL JD 【内部加强版】 淘宝、天猫、京东内部优惠券 优惠20%以上 使用方便 2018.4.9更新 
// @namespace    https://www.49zhe.com/
// @version      4.7
// @description  一个按钮查找淘宝内部优惠券,领取内部优惠券。直接领取优惠券购买。优惠20%以上!
// @author       Taobao
// @include      http*://item.taobao.com/*
// @include      http*://detail.tmall.com/*
// @include      http*://item.jd.com/* 
// @require      https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    $(document).ready(function() {
        var url = window.location.host;
        var name = '';
        var html = '';
        if (url.indexOf('taobao.com') > 0) {
            name = $.trim($('.tb-main-title').text());
            html = '<div class="tb-btn-add" style="padding-top:10px;"><a href="http://49zhe.com/index.php?m=quan&a=sok&type=2&kwd='+ encodeURI(name) + '">领取优惠券</a></div>';
            $('.tb-action').append(html);
        } 
        if (url.indexOf('tmall.com') > 0)  {
            name = $.trim($('meta[name=keywords]').attr('content'));
            html = '<div class="tb-btn-basket tb-btn-sku"  style="padding-top:10px;"><a href="http://49zhe.com/index.php?m=quan&a=sok&type=2&kwd=' + encodeURI(name) + '">领取优惠券</a></div>';
            $('.tb-action').append(html);
        }
        
        if (url.indexOf('jd.com') > 0) {
            name = $.trim($('.sku-name').text());
            html = '<a href="http://jd.49zhe.com/?ah=total&kw='+ encodeURI(name) +'" target="_blank"  class="btn-special1 btn-lg">领取优惠券</a><a href="http://49zhe.com/index.php?m=quan&a=sok&type=2&kwd=' + encodeURI(name.substring(0,15)) + '" target="_blank"  class="btn-special1 btn-lg">找淘宝同款</a>';
            $('#choose-btns').append(html);
        }
    });
})();