一个按钮查找淘宝天猫内部优惠券,一键免费#取。直接#取优惠券购买。优惠30%以上!
// ==UserScript== // @name 【稳定可用 常更新】【淘宝】【天猫】内部优惠券 一键免费#取 购物前点击#取#一下 直接省钱30%以上 2021.10.31更新 // @namespace https://www.jbsou.cn/ // @version 8.55 // @description 一个按钮查找淘宝天猫内部优惠券,一键免费#取。直接#取优惠券购买。优惠30%以上! // @author Timi // @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 // @antifeature referral-link 【应GreasyFork代码规范要求:查询过程中 会含有推广者的pid代码 产生佣金。含有优惠券查询功能的脚本必须添加此提示!脚本使用过程中无任何强制跳转等行为,代码可查,请大家放心!在此感谢大家的理解...】 // ==/UserScript== (function () { 'use strict'; $(document).ready(function () { var host = window.location.host; var productNm = ''; var url = "http://quan.at38.cn/?cid=sINHpAY#/search?keyword="; var urll = "http://quan.at38.cn/?cid=sINHpAY#/index/home"; var label = "获取优惠券"; var labell = "双11现金红包"; 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'; } $(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>'; } } })();