【天猫、淘宝】猫淘宝隐藏优惠券领取,使用简单不多打扰

简单不打扰,一个按钮轻松查询,有优惠券可立即领取购物省30%以上。

  1. // ==UserScript==
  2. // @name 【天猫、淘宝】猫淘宝隐藏优惠券领取,使用简单不多打扰
  3. // @namespace 【天猫、淘宝】猫淘宝隐藏优惠券领取,在想怎么找淘宝隐藏优惠券?在这里
  4. // @version 0.2
  5. // @description 简单不打扰,一个按钮轻松查询,有优惠券可立即领取购物省30%以上。
  6. // @author gamemt
  7. // @icon https://i.loli.net/2020/07/12/BHTe7dGvaC5wV1M.png
  8. // @include *detail.tmall.com/item.htm*
  9. // @include *item.taobao.com/item.htm*
  10. // @grant GM_xmlhttpRequest
  11. // @connect socheap.store
  12. // @connect taobaokeapi.com
  13. // @require http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18. var appkey = '5f0b092fe2fcd';
  19. var secret = '3da6170076fabf042bd3add0fb9abd54';
  20. var pid = 'mm_109215233_39936826_150642284';
  21. var msg = '很抱歉!该商品没有查询优惠券!'
  22. function getcoupon(){
  23. GM_xmlhttpRequest({
  24. method:'get',
  25. url:url,
  26. onload:function(res){
  27. var resdata = JSON.parse(res.responseText).result;
  28. if(resdata.data.coupon_remain_count>=1){
  29. window.location.href = resdata.data.coupon_click_url;
  30. }
  31. else{
  32. window.location.href = resdata.data.item_url;
  33. }
  34. }
  35. })
  36. }
  37. var localurl = window.location.href;
  38. var btn_coupon = '<div id="xsyhnbcouponbtn" style="margin-bottom:10px;" class="tb-btn-buy tb-btn-sku" ><a href="javascript:void(0);">查询优惠券</a></div>';
  39. var tbid =location.search.split('id=')[1].split('&')[0]
  40. var url = "https://api.taobaokeapi.com/?usertoken=360b94a47e27412b95aebb2c9de3f6ba&method=taobao.tbk.privilege.get&item_id="+tbid+"&adzone_id=150642284&site_id=39936826"
  41. var getmoreurl = 'http://woyo.app';
  42. var btn_getmore ='<div style="margin-bottom:10px;" class="tb-btn-basket tb-btn-add tb-btn-sku"><a target="_blank" href="'+getmoreurl+'">更多优惠商品推荐</a></div>';
  43. var tag = $('div.tb-action');
  44. tag.prepend(btn_getmore);
  45. tag.prepend(btn_coupon);
  46. $('#xsyhnbcouponbtn').click(getcoupon)
  47. // Your code here...
  48. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址