一键免费领取天猫淘宝优惠券,支付宝红包,直接领取优惠券购买
// ==UserScript==
// @name 淘宝天猫内部优惠券/支付宝红包 一键免费领取【2018/7/25更新】
// @namespace http://www.xxiaoxi.com/
// @version 1.1
// @description 一键免费领取天猫淘宝优惠券,支付宝红包,直接领取优惠券购买
// @author bazhepu
// @include http*://item.taobao.com/*
// @include http*://detail.tmall.com/*
// @require https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js
// @grant none
// @run-at document-end
// ==/UserScript==
(function () {
'use strict';
$(document).ready(function () {
var host = window.location.host;
var productNm = '';
var url = "http://www.xxiaoxi.com/index.php?r=l&kw=";
var urll = "http://ove7v44wl.bkt.clouddn.com/hongbao.png";
var label = "领取内部券";
var labell = "支付宝红包";
var cssSelector = '';
if (host.indexOf('taobao.com') > 0) {
productNm = $.trim($('.tb-main-title').text());
cssSelector = '.tb-action';
} else if (host.indexOf('tmall.com') > 0) {
productNm = $.trim($('.tb-detail-hd h1').text());
cssSelector = '.tb-action';
} else if (host.indexOf('jd.com') > 0) {
productNm = $.trim($('.sku-name').text());
cssSelector = '#choose-btns';
url = "http://dong.jbsou.cn/?r=search?kw=";
}
$(cssSelector).append(obtainAppendHtml(host, url, productNm, label, urll, labell));
});
function obtainAppendHtml(host, url, productNm, label, urll, labell) {
if (host.indexOf('taobao.com') > 0) {
return '<div class="div-inline"><div class="tb-btn-buy" style="padding-top:11px;"><a href="' + url + encodeURI(productNm) + '" target="_blank">' + label + '</a></div></div> <div class="div-inline"><div class="tb-btn-add" style="padding-top:11px;"><a href="' + urll + '" target="_blank">' + labell + '</a></div></div>';
} else if (host.indexOf('tmall.com') > 0) {
return '<div class="div-inline"><div class="tb-btn-buy tb-btn-sku" style="padding-top:11px;"><a href="' + url + encodeURI(productNm) + '" target="_blank">' + label + '</a></div></div> <div class="div-inline"><div class="tb-btn-basket tb-btn-sku " style="padding-top:11px;"><a href="' + urll + '" target="_blank">' + labell + '</a></div></div>';
} else if (host.indexOf('jd.com') > 0) {
return '<a class="btn-special1 btn-lg" href="' + url + encodeURI(productNm) + '" target="_blank">' + label + '</a>';
}
}
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址