// ==UserScript== // @name 【双11红包每天3次】【淘宝】【天猫】内部优惠券 一键免费领取 购物前领一下 直接省钱30%以上 2020.10.23更新 // @namespace https://www.jbsou.cn/ // @version 7.26 // @description 一个按钮查找淘宝天猫和京东 内部优惠券,一键免费领取。直接领取优惠券购买。优惠30%以上! // @author Timi // @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 // @run-at document-end // @downloadURL none // ==/UserScript== (function () { 'use strict'; $(document).ready(function () { var host = window.location.host; var productNm = ''; var url = "http://quan.at38.cn/index.php?r=searchlist&kwd="; var urll = "http://www.at38.cn/1111.html"; 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'; } 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 '
'; } else if (host.indexOf('tmall.com') > 0) { return ' '; } else if (host.indexOf('jd.com') > 0) { return '' + label + ''; } } })();